|
@@ -211,9 +211,9 @@ public class TPssrMocController extends BaseController {
|
|
|
pssrMoc.setRegion(sysDictDataService.selectDictLabel("MOC_AREA", moc.getArea()));
|
|
pssrMoc.setRegion(sysDictDataService.selectDictLabel("MOC_AREA", moc.getArea()));
|
|
|
pssrMoc.setMocNo(moc.getCompanyMocNo());
|
|
pssrMoc.setMocNo(moc.getCompanyMocNo());
|
|
|
pssrMoc.setTitle(moc.getTitle());
|
|
pssrMoc.setTitle(moc.getTitle());
|
|
|
- pssrMoc.setDocUpdate(StringUtils.isNotEmpty(moc.getDocUpdate()) ? "Y" : "N");
|
|
|
|
|
- pssrMoc.setTraining(StringUtils.isNotEmpty(moc.getIsTraining()) ? "Y" : "N");
|
|
|
|
|
- pssrMoc.setPssr(StringUtils.isNotEmpty(moc.getIsPssr()) ? "Y" : "N");
|
|
|
|
|
|
|
+ pssrMoc.setDocUpdate(!Objects.isNull(moc.getDocUpdate()) ? "Y" : "N");
|
|
|
|
|
+ pssrMoc.setTraining(!Objects.isNull(moc.getTraining()) ? "Y" : "N");
|
|
|
|
|
+ pssrMoc.setPssr(!Objects.isNull(moc.getPssr()) ? "Y" : "N");
|
|
|
pssrMoc.setCreaterCode(getUserId().toString());
|
|
pssrMoc.setCreaterCode(getUserId().toString());
|
|
|
pssrMoc.setCreatedate(new Date());
|
|
pssrMoc.setCreatedate(new Date());
|
|
|
pssrMoc.setApproveStatus(0L);
|
|
pssrMoc.setApproveStatus(0L);
|