|
|
@@ -109,7 +109,7 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
|
|
109
|
109
|
|
|
110
|
110
|
@Override
|
|
111
|
111
|
@Transactional
|
|
112
|
|
- public Map<String, Object> saveOrUpdate(HttpServletRequest request, String bizSqrEnterpriseApplyJson, String userInfo) throws Exception {
|
|
|
112
|
+ public Map<String, Object> saveOrUpdate(BizSqrEnterpriseApply bizSqrEnterpriseApply) throws Exception {
|
|
113
|
113
|
Map<String, Object> modelMap = new HashMap<String, Object>();
|
|
114
|
114
|
JSONObject user = null;
|
|
115
|
115
|
JSONObject org = null;
|
|
|
@@ -117,24 +117,18 @@ public class BizSqrEnterpriseApplyServiceImpl implements BizSqrEnterpriseApplySe
|
|
117
|
117
|
String userName = "";
|
|
118
|
118
|
Map<String, Object> modelMap1 = new HashMap<String, Object>();
|
|
119
|
119
|
//获取单位信息
|
|
120
|
|
- String orgInfo = ObjectUtils.toString(request.getSession().getAttribute("orgInfo"),"");
|
|
121
|
120
|
String dwbm = "";
|
|
122
|
121
|
String ajbm ="";
|
|
123
|
|
- if (null != orgInfo && !"".equals(orgInfo)) {
|
|
124
|
|
- org = JSONObject.parseObject(orgInfo);
|
|
125
|
|
- dwbm = org.get("creditCode") == null?"":org.get("creditCode").toString();
|
|
126
|
|
- }
|
|
127
|
122
|
|
|
128
|
123
|
Date date = new Date();
|
|
129
|
124
|
// JSON字符串转对象
|
|
130
|
125
|
ObjectMapper mapper = new ObjectMapper();
|
|
131
|
126
|
|
|
132
|
|
- BizSqrEnterpriseApply bizSqrEnterpriseApply = (BizSqrEnterpriseApply) mapper.readValue(bizSqrEnterpriseApplyJson, BizSqrEnterpriseApply.class);
|
|
133
|
127
|
String unitInfoId =bizSqrEnterpriseApply.getUnitInfoId();
|
|
134
|
128
|
BizSqrEnterprise bizSqrEnterprise=bizSqrEnterpriseMapper.fibdByEnterprise(unitInfoId);
|
|
135
|
129
|
|
|
136
|
130
|
// BizSqrEnterpriseApply bSqrEnterpriseApply = bizSqrEnterpriseApplyService.findById(bizSqrEnterpriseApplyId);
|
|
137
|
|
- if(bizSqrEnterpriseApply.getApplyStatus()==0){//保存
|
|
|
131
|
+ if(bizSqrEnterpriseApply.getApplyStatus()==0){
|
|
138
|
132
|
if(bizSqrEnterpriseApply.getApplyType()==4){
|
|
139
|
133
|
if(bizSqrEnterpriseApply.getId()!=null){
|
|
140
|
134
|
bizSqrEnterpriseApplyMapper.delete(bizSqrEnterpriseApply.getId());
|