|
|
@ -39,6 +39,9 @@ public class ZyjhController {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PostMapping("zx")
|
|
|
|
@PostMapping("zx")
|
|
|
|
public ResultBean<?> zx(@RequestBody PgDto dto) {
|
|
|
|
public ResultBean<?> zx(@RequestBody PgDto dto) {
|
|
|
|
|
|
|
|
if (StrUtil.isEmpty(dto.getZxZtName())) {
|
|
|
|
|
|
|
|
throw new ServiceException(10001,"作业计划执行内容不能为空");
|
|
|
|
|
|
|
|
}
|
|
|
|
List<DmYdjh> list=dto.getList();
|
|
|
|
List<DmYdjh> list=dto.getList();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Field field=DmYdjh.class.getField(dto.getField());
|
|
|
|
Field field=DmYdjh.class.getField(dto.getField());
|
|
|
@ -47,6 +50,7 @@ public class ZyjhController {
|
|
|
|
String date=DateUtil.date().toString("yyyy/MM/dd");
|
|
|
|
String date=DateUtil.date().toString("yyyy/MM/dd");
|
|
|
|
for(DmYdjh dmYdjh:list){
|
|
|
|
for(DmYdjh dmYdjh:list){
|
|
|
|
field.set(dmYdjh,date);
|
|
|
|
field.set(dmYdjh,date);
|
|
|
|
|
|
|
|
dmYdjh.setZtByZyjhzx(dto.getZxZtName());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
zyjhService.updateBatchById(list);
|
|
|
|
zyjhService.updateBatchById(list);
|
|
|
@ -64,6 +68,8 @@ public class ZyjhController {
|
|
|
|
List<DmYdjh> list = zyjhService.list(Wrappers.<DmYdjh>query()
|
|
|
|
List<DmYdjh> list = zyjhService.list(Wrappers.<DmYdjh>query()
|
|
|
|
//执行查询
|
|
|
|
//执行查询
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getField()),search.getField(),search.getUser())
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getField()),search.getField(),search.getUser())
|
|
|
|
|
|
|
|
.isNull(StrUtil.isEmpty(search.getField()),search.getField())
|
|
|
|
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getZt()),"zt",search.getZt())
|
|
|
|
.le(StrUtil.isNotEmpty(search.getJhrqField()),search.getJhrqField(), DateUtil.date().toString("yyyy/MM/dd"))
|
|
|
|
.le(StrUtil.isNotEmpty(search.getJhrqField()),search.getJhrqField(), DateUtil.date().toString("yyyy/MM/dd"))
|
|
|
|
//跟踪查询
|
|
|
|
//跟踪查询
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getXqrq()),"xqrq",search.getXqrq())
|
|
|
|
.eq(StrUtil.isNotEmpty(search.getXqrq()),"xqrq",search.getXqrq())
|
|
|
@ -107,7 +113,7 @@ public class ZyjhController {
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
public ResultBean<?> sl(@RequestBody ShangLiao sl) {
|
|
|
|
public ResultBean<?> sl(@RequestBody ShangLiao sl) {
|
|
|
|
if (!sl.checkCkwp()){
|
|
|
|
if (!sl.checkCkwp()){
|
|
|
|
throw new ServiceException(10009,"物品库存不存在,或库存信息错误");
|
|
|
|
//throw new ServiceException(10009,"物品库存不存在,或库存信息错误");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//更新预处理垛位信息
|
|
|
|
//更新预处理垛位信息
|
|
|
|