|
|
@@ -48,10 +48,11 @@ public class StorageFcbgzController {
|
|
48
|
48
|
@ApiImplicitParam(name="jznd", value="记账年度", paramType="query"),
|
|
49
|
49
|
@ApiImplicitParam(name="dataStatus", value="是否记账(0:已记账,1:未记账)", paramType="query"),
|
|
50
|
50
|
@ApiImplicitParam(name="sfjz", value="是否结转(0:是,1:否)", paramType="query"),
|
|
51
|
|
- @ApiImplicitParam(name="orgId", value="库ID", paramType="query")
|
|
|
51
|
+ @ApiImplicitParam(name="orgId", value="库ID", paramType="query"),
|
|
|
52
|
+ @ApiImplicitParam(name="ylorcpl", value="原粮或者成品粮(0:原粮,1:成品粮)", paramType="query")
|
|
52
|
53
|
})
|
|
53
|
54
|
public PageInfo<StorageFcbgz> getListFcbgz(Integer pageNum, Integer pageSize,
|
|
54
|
|
- Integer lspz, Integer lsxz, String jznd, String dataStatus, String sfjz, Integer orgId) {
|
|
|
55
|
+ Integer lspz, Integer lsxz, String jznd, String dataStatus, String sfjz, Integer orgId, String ylorcpl) {
|
|
55
|
56
|
|
|
56
|
57
|
List<StorageFcbgz> list = null;
|
|
57
|
58
|
|
|
|
@@ -59,7 +60,7 @@ public class StorageFcbgzController {
|
|
59
|
60
|
if (pageNum!=null && pageSize!=null) {
|
|
60
|
61
|
PageHelper.startPage(pageNum, pageSize);
|
|
61
|
62
|
}
|
|
62
|
|
- list = storageFcbgzService.selectFcbgzList(lspz, lsxz, jznd, dataStatus, sfjz, orgId);
|
|
|
63
|
+ list = storageFcbgzService.selectFcbgzList(lspz, lsxz, jznd, dataStatus, sfjz, orgId, ylorcpl);
|
|
63
|
64
|
} catch (Exception e) {
|
|
64
|
65
|
logger.error(e.getMessage(), e);
|
|
65
|
66
|
}
|
|
|
@@ -162,9 +163,11 @@ public class StorageFcbgzController {
|
|
162
|
163
|
}
|
|
163
|
164
|
}
|
|
164
|
165
|
|
|
165
|
|
- @Scheduled(cron = "00 00 23 * * ?")
|
|
|
166
|
+ //@Scheduled(cron = "00 00 23 * * ?")//每天23点执行一次
|
|
|
167
|
+ //每个小时执行一次
|
|
|
168
|
+ @Scheduled(cron = "0 0 * * * ?")
|
|
166
|
169
|
@RequestMapping(value="/timedGenerationFcbgzSclData", method = RequestMethod.GET)
|
|
167
|
|
- @ApiOperation(value="定时生成省级储备粮分仓保管账数据", notes = "每天23点执行一次")
|
|
|
170
|
+ @ApiOperation(value="定时生成原粮省级储备粮分仓保管账数据", notes = "每个小时执行一次")
|
|
168
|
171
|
public void timedGenerationFcbgzSclData() {
|
|
169
|
172
|
try {
|
|
170
|
173
|
storageFcbgzService.timedGenerationFcbgzData(null, "6877", null, "0");
|
|
|
@@ -174,9 +177,11 @@ public class StorageFcbgzController {
|
|
174
|
177
|
System.out.println("结束了");
|
|
175
|
178
|
}
|
|
176
|
179
|
|
|
177
|
|
- @Scheduled(cron = "0 15 23 * * ?")
|
|
|
180
|
+ //@Scheduled(cron = "0 15 23 * * ?")//每天23点15执行一次
|
|
|
181
|
+ //每小时的第15分钟0秒触发一次任务。
|
|
|
182
|
+ @Scheduled(cron = "0 15 * * * ?")
|
|
178
|
183
|
@RequestMapping(value="/timedGenerationFcbgzSplData", method = RequestMethod.GET)
|
|
179
|
|
- @ApiOperation(value="定时生成商品粮分仓保管账数据", notes = "每天23点15执行一次")
|
|
|
184
|
+ @ApiOperation(value="定时生成原粮商品粮分仓保管账数据", notes = "每小时的第15分钟0秒触发一次")
|
|
180
|
185
|
public void timedGenerationFcbgzSplData() {
|
|
181
|
186
|
try {
|
|
182
|
187
|
storageFcbgzService.timedGenerationFcbgzData(null, "3052", null, "0");
|
|
|
@@ -186,8 +191,22 @@ public class StorageFcbgzController {
|
|
186
|
191
|
System.out.println("结束了");
|
|
187
|
192
|
}
|
|
188
|
193
|
|
|
|
194
|
+ //@Scheduled(cron = "00 00 23 * * ?")//每天23点执行一次
|
|
|
195
|
+ //每个小时执行一次
|
|
|
196
|
+ @Scheduled(cron = "0 0 * * * ?")
|
|
|
197
|
+ @RequestMapping(value="/timedGenerationCplFcbgzData", method = RequestMethod.GET)
|
|
|
198
|
+ @ApiOperation(value="定时生成原粮省级储备粮分仓保管账数据", notes = "每个小时执行一次")
|
|
|
199
|
+ public void timedGenerationCplFcbgzSclData() {
|
|
|
200
|
+ try {
|
|
|
201
|
+ storageFcbgzService.timedGenerationCplFcbgzData(null, "6877", null, "1");
|
|
|
202
|
+ } catch (Exception e) {
|
|
|
203
|
+ logger.error(e.getMessage(), e);
|
|
|
204
|
+ }
|
|
|
205
|
+ System.out.println("结束了");
|
|
|
206
|
+ }
|
|
|
207
|
+
|
|
189
|
208
|
@RequestMapping(value="/timedGenerationFcbgzData_test", method = RequestMethod.GET)
|
|
190
|
|
- @ApiOperation(value="定时生成保管账数据_手动生成接口", notes = "")
|
|
|
209
|
+ @ApiOperation(value="定时生成原粮保管账数据_手动生成接口", notes = "")
|
|
191
|
210
|
@ApiImplicitParams({
|
|
192
|
211
|
@ApiImplicitParam(name="orgId", value="库ID", paramType="query"),
|
|
193
|
212
|
@ApiImplicitParam(name="hwxz", value="粮食性质", paramType="query"),
|
|
|
@@ -202,6 +221,23 @@ public class StorageFcbgzController {
|
|
202
|
221
|
}
|
|
203
|
222
|
System.out.println("结束了");
|
|
204
|
223
|
}
|
|
|
224
|
+
|
|
|
225
|
+ @RequestMapping(value="/timedGenerationCplFcbgzData_test", method = RequestMethod.GET)
|
|
|
226
|
+ @ApiOperation(value="定时生成成品粮保管账数据_手动生成接口", notes = "")
|
|
|
227
|
+ @ApiImplicitParams({
|
|
|
228
|
+ @ApiImplicitParam(name="orgId", value="库ID", paramType="query"),
|
|
|
229
|
+ @ApiImplicitParam(name="hwxz", value="粮食性质", paramType="query"),
|
|
|
230
|
+ @ApiImplicitParam(name="rqs", value="记账日期", paramType="query"),
|
|
|
231
|
+ @ApiImplicitParam(name="ylorcpl", value="原粮或者成品粮(0:原粮,1:成品粮)", paramType="query")
|
|
|
232
|
+ })
|
|
|
233
|
+ public void timedGenerationCplFcbgzData_test(String orgId, String hwxz, String rqs, String ylorcpl) {
|
|
|
234
|
+ try {
|
|
|
235
|
+ storageFcbgzService.timedGenerationCplFcbgzData(orgId, hwxz, rqs, ylorcpl);
|
|
|
236
|
+ } catch (Exception e) {
|
|
|
237
|
+ logger.error(e.getMessage(), e);
|
|
|
238
|
+ }
|
|
|
239
|
+ System.out.println("结束了");
|
|
|
240
|
+ }
|
|
205
|
241
|
|
|
206
|
242
|
@RequestMapping(value="/createHwsnjzData", method = RequestMethod.GET)
|
|
207
|
243
|
@ApiOperation(value="手动生成一个货位的上年结转数据数据", notes = "")
|
|
|
@@ -210,9 +246,10 @@ public class StorageFcbgzController {
|
|
210
|
246
|
@ApiImplicitParam(name="ch", value="仓房ID", paramType="query"),
|
|
211
|
247
|
@ApiImplicitParam(name="hwh", value="货位ID", paramType="query"),
|
|
212
|
248
|
@ApiImplicitParam(name="jznd", value="记账年度", paramType="query"),
|
|
213
|
|
- @ApiImplicitParam(name="lsxz", value="粮食性质", paramType="query")
|
|
|
249
|
+ @ApiImplicitParam(name="lsxz", value="粮食性质", paramType="query"),
|
|
|
250
|
+ @ApiImplicitParam(name="ylorcpl", value="原粮或者成品粮(0:原粮,1:成品粮)", paramType="query")
|
|
214
|
251
|
})
|
|
215
|
|
- public void createHwsnjzData(String orgId, Integer ch, Integer hwh, String jznd, Integer lsxz) {
|
|
216
|
|
- storageFcbgzService.createHwsnjzData(orgId, ch, hwh, jznd, lsxz);
|
|
|
252
|
+ public void createHwsnjzData(String orgId, Integer ch, Integer hwh, String jznd, Integer lsxz, String ylorcpl) {
|
|
|
253
|
+ storageFcbgzService.createHwsnjzData(orgId, ch, hwh, jznd, lsxz, ylorcpl);
|
|
217
|
254
|
}
|
|
218
|
255
|
}
|