|
@@ -329,13 +329,13 @@ public class CAcceptanceBasicInfoServiceImpl extends ServiceImpl<CAcceptanceBasi
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public ResponseJson add(CAcceptanceBasicInfo acceptanceBasicInfo, HttpServletRequest request) throws Exception {
|
|
public ResponseJson add(CAcceptanceBasicInfo acceptanceBasicInfo, HttpServletRequest request) throws Exception {
|
|
if (acceptanceBasicInfo.getId() != null ) {
|
|
if (acceptanceBasicInfo.getId() != null ) {
|
|
- //更新
|
|
|
|
- updateAcceptanceSheet(acceptanceBasicInfo,request);
|
|
|
|
//前端没有传验收单编号
|
|
//前端没有传验收单编号
|
|
CAcceptanceBasicInfo byId = this.getById(acceptanceBasicInfo.getId());
|
|
CAcceptanceBasicInfo byId = this.getById(acceptanceBasicInfo.getId());
|
|
if(byId!=null){
|
|
if(byId!=null){
|
|
acceptanceBasicInfo.setAcceptanceNumber(byId.getAcceptanceNumber());
|
|
acceptanceBasicInfo.setAcceptanceNumber(byId.getAcceptanceNumber());
|
|
}
|
|
}
|
|
|
|
+ //更新
|
|
|
|
+ updateAcceptanceSheet(acceptanceBasicInfo,request);
|
|
updateById(acceptanceBasicInfo);
|
|
updateById(acceptanceBasicInfo);
|
|
} else {
|
|
} else {
|
|
//保存验收单信息
|
|
//保存验收单信息
|