|
|
|
|
@ -96,61 +96,7 @@ public class ProReTemplateServiceImpl extends EnBaseServiceImpl<ProReTemplateMap |
|
|
|
|
tankVO.setChildrenList(detailVOList); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// /**
|
|
|
|
|
// * 构建BaseEntityVO
|
|
|
|
|
// *
|
|
|
|
|
// * @param be 不赋值可以传入null
|
|
|
|
|
// * @param statusCode 不需要可以传入null
|
|
|
|
|
// * @return BaseEntityVO
|
|
|
|
|
// */
|
|
|
|
|
// public BaseEntityVO setBaseVOValue(BaseEntity be, String statusCode) {
|
|
|
|
|
// if (be == null) {
|
|
|
|
|
// return null;
|
|
|
|
|
// }
|
|
|
|
|
// BaseEntityVO bv = new BaseEntityVO();
|
|
|
|
|
// R<UserInfo> rUICR = null;
|
|
|
|
|
// R<UserInfo> rUIUP = null;
|
|
|
|
|
// R<Dept> rDept = null;
|
|
|
|
|
// if (IdUtil.isValid(be.getCreateUser())) {
|
|
|
|
|
// rUICR = userClient.userInfo(be.getCreateUser());
|
|
|
|
|
// if (rUICR != null && rUICR.isSuccess() &&
|
|
|
|
|
// rUICR.getData() != null && rUICR.getData().getUser() != null) {
|
|
|
|
|
// bv.setCreateUserRealName(rUICR.getData().getUser().getRealName());
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// if (IdUtil.isValid(be.getUpdateUser())) {
|
|
|
|
|
// rUIUP = userClient.userInfo(be.getUpdateUser());
|
|
|
|
|
// if (rUIUP != null && rUIUP.isSuccess() &&
|
|
|
|
|
// rUIUP.getData() != null && rUIUP.getData().getUser() != null) {
|
|
|
|
|
// bv.setUpdateUserRealName(rUIUP.getData().getUser().getRealName());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (IdUtil.isValid(be.getCreateDept())) {
|
|
|
|
|
// rDept = sysClient.getDept(be.getCreateDept());
|
|
|
|
|
// if (rDept != null && rDept.isSuccess() && rDept.getData() != null) {
|
|
|
|
|
// bv.setCreateDeptName(rDept.getData().getDeptName());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (be.getCreateTime() != null && be.getUpdateTime() != null) {
|
|
|
|
|
// if (be.getUpdateTime().after(be.getCreateTime())) { // 更新时间更晚
|
|
|
|
|
// bv.setKeepUser(be.getUpdateUser());
|
|
|
|
|
// bv.setKeepUserRealName(bv.getUpdateUserRealName());
|
|
|
|
|
// } else { // 等于或更早
|
|
|
|
|
// bv.setKeepUser(be.getCreateUser());
|
|
|
|
|
// bv.setKeepUserRealName(bv.getCreateUserRealName());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (StringUtils.isNotBlank(statusCode)) {
|
|
|
|
|
// R<String> rStatusDic = dictClient.getValue(statusCode, "" + be.getStatus());
|
|
|
|
|
// if (rStatusDic != null && rStatusDic.isSuccess() && rStatusDic.getData() != null) {
|
|
|
|
|
// bv.setStatusName(rStatusDic.getData());
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// return bv;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R updateDetail(ProReTemplateVO vo) { |
|
|
|
|
for (ProReTemplateTankVO tankOne : vo.getPreserveSlotList()) { |
|
|
|
|
|