|
@ -101,8 +101,8 @@ public class StorattrServiceImpl extends ServiceImpl<StorattrMapper, Storattr> i |
|
|
dto.setStor_id(IdUtil.getSnowflake(1, 1).nextId()); |
|
|
dto.setStor_id(IdUtil.getSnowflake(1, 1).nextId()); |
|
|
dto.setCreate_id(currentUserId); |
|
|
dto.setCreate_id(currentUserId); |
|
|
dto.setCreate_name(nickName); |
|
|
dto.setCreate_name(nickName); |
|
|
dto.setUpdate_optid(currentUserId); |
|
|
dto.setUpdate_id(currentUserId); |
|
|
dto.setUpdate_optname(nickName); |
|
|
dto.setUpdate_name(nickName); |
|
|
dto.setUpdate_time(now); |
|
|
dto.setUpdate_time(now); |
|
|
dto.setCreate_time(now); |
|
|
dto.setCreate_time(now); |
|
|
|
|
|
|
|
@ -133,8 +133,8 @@ public class StorattrServiceImpl extends ServiceImpl<StorattrMapper, Storattr> i |
|
|
|
|
|
|
|
|
String now = DateUtil.now(); |
|
|
String now = DateUtil.now(); |
|
|
dto.setUpdate_time(now); |
|
|
dto.setUpdate_time(now); |
|
|
dto.setUpdate_optid(currentUserId); |
|
|
dto.setUpdate_id(currentUserId); |
|
|
dto.setUpdate_optname(nickName); |
|
|
dto.setUpdate_name(nickName); |
|
|
dto.setSyscompanyid(dto.getSysdeptid()); |
|
|
dto.setSyscompanyid(dto.getSysdeptid()); |
|
|
|
|
|
|
|
|
storattrMapper.updateById(BeanUtil.copyProperties(dto, Storattr.class)); |
|
|
storattrMapper.updateById(BeanUtil.copyProperties(dto, Storattr.class)); |
|
@ -151,8 +151,8 @@ public class StorattrServiceImpl extends ServiceImpl<StorattrMapper, Storattr> i |
|
|
Storattr storattr = new Storattr(); |
|
|
Storattr storattr = new Storattr(); |
|
|
storattr.setStor_id(stor_id); |
|
|
storattr.setStor_id(stor_id); |
|
|
storattr.setIs_delete("1"); |
|
|
storattr.setIs_delete("1"); |
|
|
storattr.setUpdate_optid(currentUserId); |
|
|
storattr.setUpdate_id(currentUserId); |
|
|
storattr.setUpdate_optname(nickName); |
|
|
storattr.setUpdate_name(nickName); |
|
|
storattr.setUpdate_time(now); |
|
|
storattr.setUpdate_time(now); |
|
|
storattrMapper.updateById(storattr); |
|
|
storattrMapper.updateById(storattr); |
|
|
} |
|
|
} |
|
@ -216,8 +216,8 @@ public class StorattrServiceImpl extends ServiceImpl<StorattrMapper, Storattr> i |
|
|
is_used = "0"; |
|
|
is_used = "0"; |
|
|
} |
|
|
} |
|
|
storattr.setIs_used(is_used); |
|
|
storattr.setIs_used(is_used); |
|
|
storattr.setUpdate_optid(currentUserId); |
|
|
storattr.setUpdate_id(currentUserId); |
|
|
storattr.setUpdate_optname(nickName); |
|
|
storattr.setUpdate_name(nickName); |
|
|
storattr.setUpdate_time(now); |
|
|
storattr.setUpdate_time(now); |
|
|
storattrMapper.updateById(storattr); |
|
|
storattrMapper.updateById(storattr); |
|
|
|
|
|
|
|
@ -225,16 +225,16 @@ public class StorattrServiceImpl extends ServiceImpl<StorattrMapper, Storattr> i |
|
|
Long stor_id = storattr.getStor_id(); |
|
|
Long stor_id = storattr.getStor_id(); |
|
|
Structattr structattr = new Structattr(); |
|
|
Structattr structattr = new Structattr(); |
|
|
structattr.setIs_used(is_used); |
|
|
structattr.setIs_used(is_used); |
|
|
structattr.setUpdate_optid(currentUserId); |
|
|
structattr.setUpdate_id(currentUserId); |
|
|
structattr.setUpdate_optname(nickName); |
|
|
structattr.setUpdate_name(nickName); |
|
|
structattr.setUpdate_time(now); |
|
|
structattr.setUpdate_time(now); |
|
|
structattrServiceImpl.update(structattr, |
|
|
structattrServiceImpl.update(structattr, |
|
|
Wrappers.lambdaUpdate(Structattr.class).eq(Structattr::getStor_id, stor_id)); |
|
|
Wrappers.lambdaUpdate(Structattr.class).eq(Structattr::getStor_id, stor_id)); |
|
|
|
|
|
|
|
|
Sectattr sectattr = new Sectattr(); |
|
|
Sectattr sectattr = new Sectattr(); |
|
|
sectattr.setIs_used(is_used); |
|
|
sectattr.setIs_used(is_used); |
|
|
sectattr.setUpdate_optid(currentUserId); |
|
|
sectattr.setUpdate_id(currentUserId); |
|
|
sectattr.setUpdate_optname(nickName); |
|
|
sectattr.setUpdate_name(nickName); |
|
|
sectattr.setUpdate_time(now); |
|
|
sectattr.setUpdate_time(now); |
|
|
sectattrServiceImpl.update(sectattr, |
|
|
sectattrServiceImpl.update(sectattr, |
|
|
Wrappers.lambdaUpdate(Sectattr.class).eq(Sectattr::getStor_id, stor_id)); |
|
|
Wrappers.lambdaUpdate(Sectattr.class).eq(Sectattr::getStor_id, stor_id)); |
|
|