|
|
@@ -132,7 +132,10 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
|
|
132
|
132
|
bizSqrEnterpriseApplyMapper.delete(bizSqrEnterpriseApply.getId());
|
|
133
|
133
|
saveAndcreatEbizSqrEnterprise(bizSqrEnterpriseApply,userName);
|
|
134
|
134
|
}else{
|
|
135
|
|
- saveAndcreatEbizSqrEnterprise(bizSqrEnterpriseApply,userName);
|
|
|
135
|
+
|
|
|
136
|
+ saveAndcreatEbizSqrEnterprise(bizSqrEnterpriseApply,userName);
|
|
|
137
|
+
|
|
|
138
|
+
|
|
136
|
139
|
}
|
|
137
|
140
|
}
|
|
138
|
141
|
|
|
|
@@ -175,24 +178,29 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
|
|
175
|
178
|
|
|
176
|
179
|
private int saveAndcreatEbizSqrEnterprise(BizSqrEnterpriseApply bizSqrEnterpriseApply,String userName){
|
|
177
|
180
|
BizSqrEnterprise bizSqrEnterprise = new BizSqrEnterprise();
|
|
178
|
|
-
|
|
179
|
|
- long snowflakeId = IdUtil.getSnowflake().nextId();
|
|
180
|
|
- bizSqrEnterprise.setId(String.valueOf(snowflakeId));
|
|
181
|
|
- bizSqrEnterprise.setUnitInfoId(bizSqrEnterpriseApply.getUnitInfoId());
|
|
182
|
|
- bizSqrEnterprise.setFullTimeStaffCount(bizSqrEnterpriseApply.getFullTimeStaffCount());
|
|
183
|
|
- bizSqrEnterprise.setCertifiedStorekeeperCount(bizSqrEnterpriseApply.getCertifiedStorekeeperCount());
|
|
184
|
|
- bizSqrEnterprise.setCertifiedInspectorCount(bizSqrEnterpriseApply.getCertifiedInspectorCount());
|
|
185
|
|
- bizSqrEnterprise.setStorageExpireTime(bizSqrEnterpriseApply.getStorageExpireTime());
|
|
186
|
|
- bizSqrEnterprise.setWarehouseFacilitySituation(bizSqrEnterpriseApply.getWarehouseFacilitySituation());
|
|
187
|
|
- bizSqrEnterprise.setAttachment(bizSqrEnterpriseApply.getAttachment());
|
|
188
|
|
- bizSqrEnterprise.setStatus(bizSqrEnterpriseApply.getApplyStatus());
|
|
189
|
|
- bizSqrEnterprise.setCreateTime(new Date());
|
|
190
|
|
- bizSqrEnterprise.setUpdateTime(new Date());
|
|
191
|
|
- bizSqrEnterpriseService.add(bizSqrEnterprise);
|
|
192
|
|
- bizSqrEnterpriseApply.setSqrEnterpriseId(bizSqrEnterprise.getId());
|
|
|
181
|
+ if(bizSqrEnterpriseApply.getApplyType()==1) {
|
|
|
182
|
+ long snowflakeId = IdUtil.getSnowflake().nextId();
|
|
|
183
|
+ bizSqrEnterprise.setId(String.valueOf(snowflakeId));
|
|
|
184
|
+ bizSqrEnterprise.setUnitInfoId(bizSqrEnterpriseApply.getUnitInfoId());
|
|
|
185
|
+ bizSqrEnterprise.setFullTimeStaffCount(bizSqrEnterpriseApply.getFullTimeStaffCount());
|
|
|
186
|
+ bizSqrEnterprise.setCertifiedStorekeeperCount(bizSqrEnterpriseApply.getCertifiedStorekeeperCount());
|
|
|
187
|
+ bizSqrEnterprise.setCertifiedInspectorCount(bizSqrEnterpriseApply.getCertifiedInspectorCount());
|
|
|
188
|
+ bizSqrEnterprise.setStorageExpireTime(bizSqrEnterpriseApply.getStorageExpireTime());
|
|
|
189
|
+ bizSqrEnterprise.setWarehouseFacilitySituation(bizSqrEnterpriseApply.getWarehouseFacilitySituation());
|
|
|
190
|
+ bizSqrEnterprise.setAttachment(bizSqrEnterpriseApply.getAttachment());
|
|
|
191
|
+ bizSqrEnterprise.setStatus(bizSqrEnterpriseApply.getApplyStatus());
|
|
|
192
|
+ bizSqrEnterprise.setCreateTime(new Date());
|
|
|
193
|
+ bizSqrEnterprise.setUpdateTime(new Date());
|
|
|
194
|
+ bizSqrEnterpriseService.add(bizSqrEnterprise);
|
|
|
195
|
+ bizSqrEnterpriseApply.setSqrEnterpriseId(bizSqrEnterprise.getId());
|
|
|
196
|
+ bizSqrEnterpriseApply.setCreateTime(new Date());
|
|
|
197
|
+ bizSqrEnterpriseApply.setUpdateTime(new Date());
|
|
|
198
|
+ return bizSqrEnterpriseApplyMapper.insert(bizSqrEnterpriseApply);
|
|
|
199
|
+ }
|
|
193
|
200
|
bizSqrEnterpriseApply.setCreateTime(new Date());
|
|
194
|
201
|
bizSqrEnterpriseApply.setUpdateTime(new Date());
|
|
195
|
|
- return bizSqrEnterpriseApplyMapper.insert(bizSqrEnterpriseApply);
|
|
|
202
|
+ return bizSqrEnterpriseApplyMapper.insert(bizSqrEnterpriseApply);
|
|
|
203
|
+
|
|
196
|
204
|
}
|
|
197
|
205
|
|
|
198
|
206
|
private void saveAndcreatRequest(BizSqrEnterpriseApply bizSqrEnterpriseApply,String userName){
|