|
@@ -157,26 +157,58 @@ public class SubInfoServiceImpl extends ServiceImpl<SubInfoMapper, SubInfo> impl
|
|
|
|
|
|
if (lstSubInfo.size() > 0) {
|
|
|
for (SubInfo subInfo : lstSubInfo) {
|
|
|
- subInfo.setSubName(sub.getProjectname());
|
|
|
- subInfo.setSubCode(sub.getProjectid());
|
|
|
- subInfo.setIndusKind(kind.getId());
|
|
|
- subInfo.setContent(sub.getConstructionscale());
|
|
|
- subInfo.setSubjectId(addressVist.getSysId());
|
|
|
- subInfo.setBeginDate(sub.getStarttime());
|
|
|
- subInfo.setEndDate(sub.getEndtime());
|
|
|
- subInfo.setUnitId(unit.getId());
|
|
|
- subInfo.setKindNature(sub.getZjlx());
|
|
|
- subInfo.setNameZrr(sub.getAgename());
|
|
|
- subInfo.setNameLead(sub.getPagename());
|
|
|
- subInfo.setCreateTime(sub.getCreatetime());
|
|
|
- subInfo.setTelLead(sub.getAgephone());
|
|
|
- subInfo.setTel(sub.getAgemobile());
|
|
|
- subInfo.setReason(sub.getCbsnum());
|
|
|
- subInfo.setAmtTotal(sub.getGrossinvestment());
|
|
|
- subInfo.setLastUpdateTime(new Date());
|
|
|
- if (sub.getStatu().equals("2")) {
|
|
|
- subInfo.setLogicDeleteFlag(1);
|
|
|
+ if(StringUtils.isEmpty(subInfo.getSubName())) {
|
|
|
+ subInfo.setSubName(sub.getProjectname());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getSubCode())) {
|
|
|
+ subInfo.setSubCode(sub.getProjectid());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getIndusKind())) {
|
|
|
+ subInfo.setIndusKind(kind.getId());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getContent())) {
|
|
|
+ subInfo.setContent(sub.getConstructionscale());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getSubjectId())) {
|
|
|
+ subInfo.setSubjectId(addressVist.getSysId());
|
|
|
+ }
|
|
|
+ if(subInfo.getBeginDate()==null) {
|
|
|
+ subInfo.setBeginDate(sub.getStarttime());
|
|
|
+ }
|
|
|
+ if(subInfo.getEndDate()==null) {
|
|
|
+ subInfo.setEndDate(sub.getEndtime());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getUnitId())) {
|
|
|
+ subInfo.setUnitId(unit.getId());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getKindNature())) {
|
|
|
+ subInfo.setKindNature(sub.getZjlx());
|
|
|
}
|
|
|
+ if(StringUtils.isEmpty(subInfo.getNameZrr())) {
|
|
|
+ subInfo.setNameZrr(sub.getAgename());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getNameLead())) {
|
|
|
+ subInfo.setNameLead(sub.getPagename());
|
|
|
+ }
|
|
|
+ if(subInfo.getCreateTime()==null) {
|
|
|
+ subInfo.setCreateTime(sub.getCreatetime());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getTelLead())) {
|
|
|
+ subInfo.setTelLead(sub.getAgephone());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getTel())) {
|
|
|
+ subInfo.setTel(sub.getAgemobile());
|
|
|
+ }
|
|
|
+ if(StringUtils.isEmpty(subInfo.getReason())) {
|
|
|
+ subInfo.setReason(sub.getCbsnum());
|
|
|
+ }
|
|
|
+ if(subInfo.getAmtTotal()==null) {
|
|
|
+ subInfo.setAmtTotal(sub.getGrossinvestment());
|
|
|
+ }
|
|
|
+ subInfo.setLastUpdateTime(new Date());
|
|
|
+// if (sub.getStatu().equals("2")) {
|
|
|
+// subInfo.setLogicDeleteFlag(1);
|
|
|
+// }
|
|
|
subInfoMapper.updateById(subInfo);
|
|
|
if (!this.hanlderResouce(sub, subInfo, map)) {
|
|
|
return false;
|