|
@@ -96,6 +96,12 @@ public class CooperatorController {
|
|
|
public Result cooperatorAdd(@RequestBody String json)
|
|
|
{
|
|
|
JSONObject req = JSON.parseObject(json);
|
|
|
+ String cooperator_name=req.getString("cooperator_name");
|
|
|
+ CooperatorInfo dupCooperatorInfo= CooperatorService.findByCooperatorNum(cooperator_name);
|
|
|
+ if (dupCooperatorInfo!=null){
|
|
|
+ return Result.error("合作方已存在!");
|
|
|
+ }
|
|
|
+
|
|
|
CooperatorInfo cooperatorInfo = new CooperatorInfo();
|
|
|
cooperatorInfo.setCooperatorName(req.getString("cooperator_name"));
|
|
|
long time1 = System.currentTimeMillis();
|