| | |
| | | @AppAuth(memo = "获取未完成订单统计信息") |
| | | public synchronized R getUnfulfilledOrders(@RequestHeader(required = false) String appkey, |
| | | HttpServletRequest request) { |
| | | auth(appkey, null, request); |
| | | // auth(appkey, null, request); |
| | | return openService.getUnfulfilledOrders(); |
| | | } |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty(value= "工作号") |
| | | @TableId(value = "wrk_no", type = IdType.INPUT) |
| | | @TableField("wrk_no") |
| | | // @TableField("wrk_no") |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | int getStoreCount(Integer crnNo); |
| | | |
| | | int saveWrkMastLog(Integer workNo); |
| | | |
| | | void checkDb(Integer workNo); |
| | | } |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | } else if (wrkMast.getSourceStaNo() == 3046 || wrkMast.getSourceStaNo() == 3042) { |
| | | wrkMast.setBarcode(param.getBarcode()); |
| | | } |
| | | wrkMastService.updateById(wrkMast); |
| | | boolean b = wrkMastService.updateById(wrkMast); |
| | | WrkMast wrkMas2 = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", param.getWorkNo())); |
| | | |
| | | log.error("{}任务状态改变为:{},更新记录{}",wrkMas2.getWrkNo(),wrkMas2.getWrkSts(),b); |
| | | // wrkMastService.checkDb(param.getWorkNo()); |
| | | if(!b) { |
| | | throw new CoolException("没有更新到记录"); |
| | | } |
| | | return "请求成功"; |
| | | } |
| | | |
| | |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @Override |
| | | public int saveWrkMastLog(Integer workNo){ |
| | | return this.baseMapper.saveWrkMastLog(workNo); |
| | | }; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(propagation = Propagation.REQUIRES_NEW) |
| | | public void checkDb(Integer workNo) { |
| | | WrkMast db = this.selectOne( |
| | | new EntityWrapper<WrkMast>().eq("wrk_no", workNo) |
| | | ); |
| | | log.error("【新事务真实库状态】wrkNo={}, wrkSts={}", workNo, db.getWrkSts()); |
| | | } |
| | | |
| | | } |