|
@@ -932,4 +932,18 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase>
|
|
|
|
|
|
ExcelUtil.export(httpServletResponse, payExportExcelList, PayExportExcel.class);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改采购单号
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void editContractCode(PurchaseDto dto) {
|
|
|
+ Assert.notEmpty(dto.getId(),"采购id不能为空");
|
|
|
+ this.update(q->q
|
|
|
+ .eq(Purchase::getId,dto.getId())
|
|
|
+ .set(BasePo::getUpdateTime,new Date())
|
|
|
+ .set(BasePo::getUpdateUser,SecurityUtils.getUserId())
|
|
|
+ .setSql("victoriatourist_json = JSON_SET(victoriatourist_json,'$.contractCode','"+dto.getContractCode()+"')")
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|