Commit e529c7f3 by linboxuan

lin pannong

parent a6ab7c72
......@@ -12,6 +12,12 @@ class edi extends APIBase {
async create(pobj,query,req) {
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
var checkResult = await this.serviceCreateCheck(pobj,req.headers);
if(checkResult.status != 0) {
......@@ -59,16 +65,16 @@ class edi extends APIBase {
return system.getResult(null, "contactName cannot be empty");
}
if(!pobj.contactMobile) {
return system.getResult(null, "contactName cannot be empty");
return system.getResult(null, "contactMobile cannot be empty");
}
if(!pobj.timeUnit) {
return system.getResult(null, "contactName cannot be empty");
return system.getResult(null, "timeUnit cannot be empty");
}
if(!pobj.quantity) {
return system.getResult(null, "contactName cannot be empty");
return system.getResult(null, "quantity cannot be empty");
}
if(!pobj.companyInfo) {
return system.getResult(null, "contactName cannot be empty");
return system.getResult(null, "companyInfo cannot be empty");
}
if(!pobj.companyInfo.companyName) {
return system.getResult(null, "companyName cannot be empty");
......
......@@ -137,9 +137,9 @@ module.exports = SignService;
// "status":"16"
// }
// var obj = {
// "bizId":"202011071358",
// "contactName":"lin",
// "contactMobile":"13911391996",
// "bizId":"OD2020110972779131",
// "contactMobile":"18516081903",
// "contactName":"符小龙",
// "timeUnit":"year",
// "quantity":1,
// "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