Merge branch 'master' of http://42.192.7.176:3000/suojin/jonhon-mes-svr
commit
7d065b51d0
22 changed files with 285 additions and 9 deletions
@ -0,0 +1,32 @@ |
||||
package org.springblade.desk.wms; |
||||
|
||||
import jakarta.annotation.Resource; |
||||
import org.springblade.desk.common.enums.MesApprovalRecordBizTypeEnum; |
||||
import org.springblade.desk.common.service.ApprovalRecordDetailStrategy; |
||||
import org.springblade.wms.feign.WmsTaskClient; |
||||
import org.springblade.wms.pojo.vo.StBuyOrderVO; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @version 1.0 |
||||
* @program: jonhon-mes-svr |
||||
* @ClassName StBuyOrderServiceImpl |
||||
* @description: |
||||
* @autor: WuSiYu |
||||
* @create 2026-06-13 15:15 |
||||
**/ |
||||
@Service |
||||
public class StBuyOrderApprovalServiceImpl implements ApprovalRecordDetailStrategy<StBuyOrderVO> { |
||||
@Resource |
||||
private WmsTaskClient wmsTaskClient; |
||||
|
||||
@Override |
||||
public String getBizType() { |
||||
return MesApprovalRecordBizTypeEnum.WMS_EXTRA_PLAN.getDesc(); |
||||
} |
||||
|
||||
@Override |
||||
public StBuyOrderVO getDetail(Long bizId) { |
||||
return wmsTaskClient.buyOrderDetail(bizId); |
||||
} |
||||
} |
||||
@ -0,0 +1,34 @@ |
||||
package org.springblade.desk.wms; |
||||
|
||||
import jakarta.annotation.Resource; |
||||
import org.springblade.desk.common.enums.MesApprovalRecordBizTypeEnum; |
||||
import org.springblade.desk.common.service.ApprovalRecordDetailStrategy; |
||||
import org.springblade.wms.feign.WmsTaskClient; |
||||
import org.springblade.wms.pojo.vo.StClassRequestVO; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @version 1.0 |
||||
* @program: jonhon-mes-svr |
||||
* @ClassName StClassRequestServiceImpl |
||||
* @description: |
||||
* @autor: WuSiYu |
||||
* @create 2026-06-13 16:06 |
||||
**/ |
||||
@Service |
||||
public class StClassRequestApprovalServiceImpl implements ApprovalRecordDetailStrategy<StClassRequestVO> { |
||||
|
||||
@Resource |
||||
private WmsTaskClient wmsTaskClient; |
||||
|
||||
@Override |
||||
public String getBizType() { |
||||
return MesApprovalRecordBizTypeEnum.TEAM_GROUP_PROCESS_AUDIT.getDesc(); |
||||
} |
||||
|
||||
@Override |
||||
public StClassRequestVO getDetail(Long bizId) { |
||||
return wmsTaskClient.classRequestDetail(bizId); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,35 @@ |
||||
package org.springblade.desk.wms; |
||||
|
||||
import jakarta.annotation.Resource; |
||||
import org.springblade.desk.common.enums.MesApprovalRecordBizTypeEnum; |
||||
import org.springblade.desk.common.service.ApprovalRecordDetailStrategy; |
||||
import org.springblade.wms.feign.WmsTaskClient; |
||||
import org.springblade.wms.pojo.vo.StMoldApplyForVO; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @version 1.0 |
||||
* @program: jonhon-mes-svr |
||||
* @ClassName st |
||||
* @description: |
||||
* @autor: WuSiYu |
||||
* @create 2026-06-13 16:38 |
||||
**/ |
||||
|
||||
@Service |
||||
public class StMoldApplyForApprovalServiceImpl implements ApprovalRecordDetailStrategy<StMoldApplyForVO> { |
||||
|
||||
@Resource |
||||
private WmsTaskClient wmsTaskClient; |
||||
|
||||
@Override |
||||
public String getBizType() { |
||||
return MesApprovalRecordBizTypeEnum.TOOL_PLAN_APPLY_AUDIT.getDesc(); |
||||
} |
||||
|
||||
@Override |
||||
public StMoldApplyForVO getDetail(Long bizId) { |
||||
return wmsTaskClient.moldApplyForDetail(bizId); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,36 @@ |
||||
package org.springblade.desk.wms; |
||||
|
||||
import jakarta.annotation.Resource; |
||||
import org.springblade.desk.common.enums.MesApprovalRecordBizTypeEnum; |
||||
import org.springblade.desk.common.service.ApprovalRecordDetailStrategy; |
||||
import org.springblade.wms.feign.WmsTaskClient; |
||||
import org.springblade.wms.pojo.vo.StOtherOutRecordVO; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @version 1.0 |
||||
* @program: jonhon-mes-svr |
||||
* @ClassName StOtherOutRecordApprovalServiceImpl |
||||
* @description: |
||||
* @autor: WuSiYu |
||||
* @create 2026-06-13 16:50 |
||||
**/ |
||||
|
||||
@Service |
||||
public class StOtherOutRecordApprovalServiceImpl implements ApprovalRecordDetailStrategy<StOtherOutRecordVO> { |
||||
|
||||
@Resource |
||||
private WmsTaskClient wmsTaskClient; |
||||
|
||||
@Override |
||||
public String getBizType() { |
||||
// 替换为对应的业务枚举
|
||||
return MesApprovalRecordBizTypeEnum.WMS_SCRAP_AUDIT.getDesc(); |
||||
} |
||||
|
||||
@Override |
||||
public StOtherOutRecordVO getDetail(Long bizId) { |
||||
return wmsTaskClient.otherOutRecordDetail(bizId); |
||||
} |
||||
|
||||
} |
||||
Loading…
Reference in new issue