Commit e529c7f3 by linboxuan

lin pannong

parent a6ab7c72
...@@ -12,6 +12,12 @@ class edi extends APIBase { ...@@ -12,6 +12,12 @@ class edi extends APIBase {
async create(pobj,query,req) { async create(pobj,query,req) {
console.log(pobj); console.log(pobj);
this.logCtl.info({
op: "service/impl/utilsSve/service.js/create",
content: "参数=" + JSON.stringify(pobj),
clientIp: req.client_ip || "",
optitle: "服务单创建接口 controller层"
});
// 校验必填 pannong 2.1 // 校验必填 pannong 2.1
var checkResult = await this.serviceCreateCheck(pobj,req.headers); var checkResult = await this.serviceCreateCheck(pobj,req.headers);
if(checkResult.status != 0) { if(checkResult.status != 0) {
...@@ -59,16 +65,16 @@ class edi extends APIBase { ...@@ -59,16 +65,16 @@ class edi extends APIBase {
return system.getResult(null, "contactName cannot be empty"); return system.getResult(null, "contactName cannot be empty");
} }
if(!pobj.contactMobile) { if(!pobj.contactMobile) {
return system.getResult(null, "contactName cannot be empty"); return system.getResult(null, "contactMobile cannot be empty");
} }
if(!pobj.timeUnit) { if(!pobj.timeUnit) {
return system.getResult(null, "contactName cannot be empty"); return system.getResult(null, "timeUnit cannot be empty");
} }
if(!pobj.quantity) { if(!pobj.quantity) {
return system.getResult(null, "contactName cannot be empty"); return system.getResult(null, "quantity cannot be empty");
} }
if(!pobj.companyInfo) { if(!pobj.companyInfo) {
return system.getResult(null, "contactName cannot be empty"); return system.getResult(null, "companyInfo cannot be empty");
} }
if(!pobj.companyInfo.companyName) { if(!pobj.companyInfo.companyName) {
return system.getResult(null, "companyName cannot be empty"); return system.getResult(null, "companyName cannot be empty");
......
...@@ -137,9 +137,9 @@ module.exports = SignService; ...@@ -137,9 +137,9 @@ module.exports = SignService;
// "status":"16" // "status":"16"
// } // }
// var obj = { // var obj = {
// "bizId":"202011071358", // "bizId":"OD2020110972779131",
// "contactName":"lin", // "contactMobile":"18516081903",
// "contactMobile":"13911391996", // "contactName":"符小龙",
// "timeUnit":"year", // "timeUnit":"year",
// "quantity":1, // "quantity":1,
// "companyInfo":{ // "companyInfo":{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment