Commit 7014dd42bf41293a50e739f8fa965088054d534f

Authored by 房远帅
1 parent 6c901af2

订货单:合同创建人更新为创建人

... ... @@ -329,7 +329,7 @@ public class PurchaseOrderInfo extends BaseEntity implements BaseDto {
329 329 /**
330 330 * 创建人ID
331 331 */
332   - @TableField(fill = FieldFill.INSERT)
  332 + @TableField(fill = FieldFill.DEFAULT)
333 333 private String createById;
334 334
335 335 /**
... ...
... ... @@ -246,7 +246,13 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde
246 246 }
247 247 if (!StringUtil.isBlank(vo.getContractCreateById())) {
248 248 data.setContractCreateById(vo.getContractCreateById());
  249 + data.setCreateById(vo.getContractCreateById());
249 250 }
  251 +
  252 + if (StringUtil.isBlank(data.getContractCreateById())) {
  253 + data.setCreateById(SecurityUtil.getCurrentUser().getId());
  254 + }
  255 +
250 256 data.setSampleOrder(vo.isSampleOrder());
251 257
252 258
... ...