领料管理--优化领料逻辑
This commit is contained in:
parent
9270ff772a
commit
19cba7f73e
|
|
@ -12,11 +12,10 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
|||
* @author xsheng
|
||||
* @date 2024-10-16
|
||||
*/
|
||||
|
||||
|
||||
@Data
|
||||
@ToString
|
||||
public class LeaseApplyDetails extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** ID */
|
||||
|
|
|
|||
|
|
@ -148,6 +148,9 @@ public class LeaseApplyInfo extends BaseEntity {
|
|||
@ApiModelProperty(value = "租赁单位id")
|
||||
private Integer leaseUnitId;
|
||||
|
||||
@ApiModelProperty(value = "协议id")
|
||||
private Long agreementId;
|
||||
|
||||
@ApiModelProperty(value = "协议号")
|
||||
private String agreementCode;
|
||||
|
||||
|
|
|
|||
|
|
@ -98,6 +98,9 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
*/
|
||||
@Override
|
||||
public AjaxResult insertLeaseApplyInfo(TmTaskRequestVo tmTaskRequestVo) {
|
||||
if (tmTaskRequestVo.getLeaseApplyInfo() == null) {
|
||||
return AjaxResult.error("请先填写领料任务信息");
|
||||
}
|
||||
tmTaskRequestVo.getLeaseApplyInfo().setCreateTime(DateUtils.getNowDate());
|
||||
tmTaskRequestVo.getLeaseApplyInfo().setCreateBy(SecurityUtils.getUsername());
|
||||
try {
|
||||
|
|
@ -109,7 +112,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
|||
tmTask.setCreateTime(DateUtils.getNowDate());
|
||||
tmTask.setCreateBy(SecurityUtils.getUsername());
|
||||
tmTaskMapper.insertTmTask(tmTask);
|
||||
TmTaskAgreement tmTaskAgreement = new TmTaskAgreement(tmTask.getTaskId(), tmTaskRequestVo.getAgreementId());
|
||||
TmTaskAgreement tmTaskAgreement = new TmTaskAgreement(tmTask.getTaskId(), tmTaskRequestVo.getLeaseApplyInfo().getAgreementId());
|
||||
tmTaskAgreement.setCreateTime(DateUtils.getNowDate());
|
||||
tmTaskAgreement.setCreateBy(SecurityUtils.getUsername());
|
||||
tmTaskAgreementMapper.insertTmTaskAgreement(tmTaskAgreement);
|
||||
|
|
|
|||
Loading…
Reference in New Issue