|
@@ -142,6 +142,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
* 主表
|
|
|
*/
|
|
|
map.put("cPBVBillType","03");//发票类型 03
|
|
|
+ map.put("chdefine4",incidentTicket.getOrderRemarks());//订单备注
|
|
|
|
|
|
map.put("iVTid", 131586);//单据模版号
|
|
|
if(businessType.equals("委外加工")){
|
|
@@ -279,12 +280,14 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
int chId = incidentTicketMapper.getMaxCode2();
|
|
|
map.put("pbvid",chId+1);//主表主键
|
|
|
incidentTicketMapper.insertPurBillVouch(map);
|
|
|
+ incidentTicketMapper.insertPurBillVouchExtraDefine(map);
|
|
|
|
|
|
int chIds = incidentTicketMapper.getMaxCode3();
|
|
|
map2.put("pbvid",chId+1);//主表主键
|
|
|
map2.put("id",chIds+1);//主键
|
|
|
incidentTicketMapper.insertPurBillVouchs(map2);
|
|
|
|
|
|
+
|
|
|
}catch (Exception e){
|
|
|
System.out.println(e.getMessage());
|
|
|
resMap.put("msg","同步数据有误,请联系管理员");
|
|
@@ -344,7 +347,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
* 主表
|
|
|
*/
|
|
|
map.put("cPBVBillType","03");//发票类型 03
|
|
|
-
|
|
|
+ map.put("chdefine4",incidentTicket.getOrderRemarks());//订单备注
|
|
|
map.put("iVTid", 131601);//单据模版号
|
|
|
if(businessType.equals("委外加工")){
|
|
|
map.put("cPTCode","02");//采购类型编码 01普通采购 02委外加工
|
|
@@ -479,6 +482,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
int chId = incidentTicketMapper.getMaxCode2();
|
|
|
map.put("pbvid",chId+1);//主表主键
|
|
|
incidentTicketMapper.insertPurBillVouch(map);
|
|
|
+ incidentTicketMapper.insertPurBillVouchExtraDefine(map);
|
|
|
|
|
|
int chIds = incidentTicketMapper.getMaxCode3();
|
|
|
map2.put("pbvid",chId+1);//主表主键
|
|
@@ -547,7 +551,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
* 主表
|
|
|
*/
|
|
|
map.put("cPBVBillType","03");//发票类型 03
|
|
|
-
|
|
|
+ map.put("chdefine4",incidentTicket.getOrderRemarks());//订单备注
|
|
|
map.put("iVTid", 8167);//单据模版号
|
|
|
if(businessType.equals("委外加工")){
|
|
|
map.put("cPTCode","02");//采购类型编码 01普通采购 02委外加工
|
|
@@ -679,6 +683,7 @@ public class IncidentTicketServiceImpl extends ServiceImpl<IncidentTicketMapper,
|
|
|
int chId = incidentTicketMapper.getMaxCode2();
|
|
|
map.put("pbvid",chId+1);//主表主键
|
|
|
incidentTicketMapper.insertPurBillVouch(map);
|
|
|
+ incidentTicketMapper.insertPurBillVouchExtraDefine(map);
|
|
|
|
|
|
int chIds = incidentTicketMapper.getMaxCode3();
|
|
|
map2.put("pbvid",chId+1);//主表主键
|