|
@@ -92,11 +92,11 @@ public class CooperatorController {
|
|
JSONObject req = JSON.parseObject(json);
|
|
JSONObject req = JSON.parseObject(json);
|
|
CooperatorInfo cooperatorInfo = new CooperatorInfo();
|
|
CooperatorInfo cooperatorInfo = new CooperatorInfo();
|
|
cooperatorInfo.setCooperatorName(req.getString("cooperator_name"));
|
|
cooperatorInfo.setCooperatorName(req.getString("cooperator_name"));
|
|
- cooperatorInfo.setCooperatorNum(req.getString("cooperatorNum"));
|
|
|
|
|
|
+ cooperatorInfo.setCorpCertificateNum(req.getString("corpCertificateNum"));
|
|
cooperatorInfo.setCorpCertificateType(req.getString("corp_certificate_type"));
|
|
cooperatorInfo.setCorpCertificateType(req.getString("corp_certificate_type"));
|
|
// long time1 = System.currentTimeMillis();
|
|
// long time1 = System.currentTimeMillis();
|
|
// cooperatorInfo.setCooperatorNum(Long.toString(time1));
|
|
// cooperatorInfo.setCooperatorNum(Long.toString(time1));
|
|
- cooperatorInfo.setTemplateNo(req.getString("field_template_no"));
|
|
|
|
|
|
+ cooperatorInfo.setTemplateId(req.getString("field_template_id"));
|
|
Calendar calendar= Calendar.getInstance();
|
|
Calendar calendar= Calendar.getInstance();
|
|
SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :HH:mm:ss");
|
|
SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :HH:mm:ss");
|
|
cooperatorInfo.setCreateTime(dateFormat.format(calendar.getTime()));
|
|
cooperatorInfo.setCreateTime(dateFormat.format(calendar.getTime()));
|
|
@@ -111,13 +111,16 @@ public class CooperatorController {
|
|
{
|
|
{
|
|
JSONObject req = JSON.parseObject(json);
|
|
JSONObject req = JSON.parseObject(json);
|
|
long cooperatorId=Long.valueOf(req.getString("cooperator_id")) ;
|
|
long cooperatorId=Long.valueOf(req.getString("cooperator_id")) ;
|
|
-// System.out.println(cooperatorId);
|
|
|
|
|
|
+ System.out.println("asdffasdasfdafe");
|
|
|
|
+ System.out.println("asdffasdasfdafe");
|
|
|
|
+
|
|
CooperatorInfo cooperatorInfo = CooperatorService.findByID(cooperatorId);
|
|
CooperatorInfo cooperatorInfo = CooperatorService.findByID(cooperatorId);
|
|
|
|
|
|
cooperatorInfo.setCooperatorName(req.getString("cooperator_name"));
|
|
cooperatorInfo.setCooperatorName(req.getString("cooperator_name"));
|
|
cooperatorInfo.setCooperatorNum(req.getString("cooperatorNum"));
|
|
cooperatorInfo.setCooperatorNum(req.getString("cooperatorNum"));
|
|
cooperatorInfo.setCorpCertificateType(req.getString("corp_certificate_type"));
|
|
cooperatorInfo.setCorpCertificateType(req.getString("corp_certificate_type"));
|
|
-
|
|
|
|
|
|
+// Long templateID = (req.getString("fieldTemplateId")).toL;
|
|
|
|
+ cooperatorInfo.setTemplateId(req.getString("fieldTemplateId"));
|
|
Calendar calendar= Calendar.getInstance();
|
|
Calendar calendar= Calendar.getInstance();
|
|
SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
|
|
SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :hh:mm:ss");
|
|
cooperatorInfo.setUpdateTime(dateFormat.format(calendar.getTime()));
|
|
cooperatorInfo.setUpdateTime(dateFormat.format(calendar.getTime()));
|