no message
parent
18cc10b20e
commit
0d87781dc9
|
|
@ -63,4 +63,6 @@ public interface PointRepository extends JpaRepository<Point, Long>, JpaSpecific
|
||||||
@Query(value = "SELECT p FROM Point p WHERE (?1='' or p.area.name =?1)" +
|
@Query(value = "SELECT p FROM Point p WHERE (?1='' or p.area.name =?1)" +
|
||||||
" and p.code like CONCAT('',?2,'%')")
|
" and p.code like CONCAT('',?2,'%')")
|
||||||
List<Point> findByLocations(String storageZone, String location);
|
List<Point> findByLocations(String storageZone, String location);
|
||||||
|
@Query(value = "SELECT p FROM Point p WHERE p.id=?1")
|
||||||
|
Point fingById(Long id);
|
||||||
}
|
}
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
*/
|
*/
|
||||||
package com.youchain.basicdata.rest;
|
package com.youchain.basicdata.rest;
|
||||||
|
|
||||||
|
import com.youchain.annotation.AnonymousAccess;
|
||||||
import com.youchain.annotation.Log;
|
import com.youchain.annotation.Log;
|
||||||
import com.youchain.basicdata.domain.LampLog;
|
import com.youchain.basicdata.domain.LampLog;
|
||||||
import com.youchain.basicdata.service.LampLogService;
|
import com.youchain.basicdata.service.LampLogService;
|
||||||
|
|
@ -54,7 +55,7 @@ public class LampLogController {
|
||||||
@GetMapping
|
@GetMapping
|
||||||
@Log("查询lamp_log")
|
@Log("查询lamp_log")
|
||||||
@ApiOperation("查询lamp_log")
|
@ApiOperation("查询lamp_log")
|
||||||
@PreAuthorize("@el.check('lampLog:list')")
|
@AnonymousAccess
|
||||||
public ResponseEntity<Object> queryLampLog(LampLogQueryCriteria criteria, Pageable pageable){
|
public ResponseEntity<Object> queryLampLog(LampLogQueryCriteria criteria, Pageable pageable){
|
||||||
return new ResponseEntity<>(lampLogService.queryAll(criteria,pageable),HttpStatus.OK);
|
return new ResponseEntity<>(lampLogService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,11 +30,11 @@ import com.youchain.annotation.Query;
|
||||||
public class TaskQueryCriteria{
|
public class TaskQueryCriteria{
|
||||||
|
|
||||||
/** 模糊 */
|
/** 模糊 */
|
||||||
@Query(type = Query.Type.INNER_LIKE)
|
@Query(joinName = "srcPoint", propName="code",type = Query.Type.INNER_LIKE)
|
||||||
private String srcPointCode;
|
private String srcPointCode;
|
||||||
|
|
||||||
/** 模糊 */
|
/** 模糊 */
|
||||||
@Query(type = Query.Type.INNER_LIKE)
|
@Query(joinName = "dstPoint", propName="code",type = Query.Type.INNER_LIKE)
|
||||||
private String dstPointCode;
|
private String dstPointCode;
|
||||||
|
|
||||||
/** 模糊 */
|
/** 模糊 */
|
||||||
|
|
@ -45,10 +45,10 @@ public class TaskQueryCriteria{
|
||||||
@Query(type = Query.Type.INNER_LIKE)
|
@Query(type = Query.Type.INNER_LIKE)
|
||||||
private String dstLocCode;
|
private String dstLocCode;
|
||||||
|
|
||||||
@Query(joinName = "item", propName="code",type = Query.Type.INNER_LIKE)
|
@Query(joinName = "itemKey>item", propName="code",type = Query.Type.INNER_LIKE)
|
||||||
private String itemCode;
|
private String itemCode;
|
||||||
|
|
||||||
@Query(joinName = "item", propName="name",type = Query.Type.INNER_LIKE)
|
@Query(joinName = "itemKey>item", propName="name",type = Query.Type.INNER_LIKE)
|
||||||
private String itemName;
|
private String itemName;
|
||||||
|
|
||||||
@Query(joinName = "asnDetail", propName="id",type = Query.Type.EQUAL)
|
@Query(joinName = "asnDetail", propName="id",type = Query.Type.EQUAL)
|
||||||
|
|
|
||||||
|
|
@ -511,6 +511,9 @@ public class TaskServiceImpl implements TaskService {
|
||||||
pointEnd.setStorageType(storageType);
|
pointEnd.setStorageType(storageType);
|
||||||
}
|
}
|
||||||
pointRepository.save(pointEnd);
|
pointRepository.save(pointEnd);
|
||||||
|
/*更新入库单状态*/
|
||||||
|
asnDetailService.receivingAsnDetail(asnDetail);
|
||||||
|
|
||||||
return ApiResult.result(200, "操作成功", billTypeCode);
|
return ApiResult.result(200, "操作成功", billTypeCode);
|
||||||
}else {
|
}else {
|
||||||
/** 人工入库*/
|
/** 人工入库*/
|
||||||
|
|
|
||||||
|
|
@ -174,11 +174,6 @@ public class TestTask {
|
||||||
BaseStatus.lengthVerifyList = JSONObject.parseArray(rfidVerify.getJSONArray("LengthList").toJSONString(),Long.class);
|
BaseStatus.lengthVerifyList = JSONObject.parseArray(rfidVerify.getJSONArray("LengthList").toJSONString(),Long.class);
|
||||||
|
|
||||||
}
|
}
|
||||||
@Transactional
|
|
||||||
/*public void asnPutStart(){
|
|
||||||
Reader.READER_ERR err = RfidDocJava.startRfid();
|
|
||||||
System.out.println("开始扫描:"+err.toString());
|
|
||||||
}*/
|
|
||||||
public void asnPutaway(){
|
public void asnPutaway(){
|
||||||
synchronized (BaseStatus.Lock.rfid_SJ) {
|
synchronized (BaseStatus.Lock.rfid_SJ) {
|
||||||
Reader.READER_ERR err = RfidDocJava.startRfid();
|
Reader.READER_ERR err = RfidDocJava.startRfid();
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@ import com.youchain.basicdata.repository.PointRepository;
|
||||||
import com.youchain.businessdata.domain.AgvTask;
|
import com.youchain.businessdata.domain.AgvTask;
|
||||||
import com.youchain.businessdata.repository.AgvTaskRepository;
|
import com.youchain.businessdata.repository.AgvTaskRepository;
|
||||||
import com.youchain.businessdata.service.AgvTaskService;
|
import com.youchain.businessdata.service.AgvTaskService;
|
||||||
|
import com.youchain.exception.BadRequestException;
|
||||||
|
import com.youchain.exception.handler.ApiResult;
|
||||||
import com.youchain.utils.BaseStatus;
|
import com.youchain.utils.BaseStatus;
|
||||||
import com.youchain.utils.BizStatus;
|
import com.youchain.utils.BizStatus;
|
||||||
import com.youchain.utils.HttpPostUtil;
|
import com.youchain.utils.HttpPostUtil;
|
||||||
|
|
@ -42,13 +44,17 @@ public class pickTask {
|
||||||
|
|
||||||
public void addAgvAsn() {
|
public void addAgvAsn() {
|
||||||
/* 生成RFID上架搬运任务*/
|
/* 生成RFID上架搬运任务*/
|
||||||
Point point=pointRepository.getById(BaseStatus.DoorPoint.getId());
|
ApiResult apiResult=null;
|
||||||
|
Point point=pointRepository.fingById(BaseStatus.DoorPoint.getId());
|
||||||
if (point.getStorageType().equals(BizStatus.LXZ_STO)){
|
if (point.getStorageType().equals(BizStatus.LXZ_STO)){
|
||||||
/* 料箱入库*/
|
/* 料箱入库*/
|
||||||
agvTaskService.addAgvAsn(BizStatus.RM_RK);
|
apiResult = agvTaskService.addAgvAsn(BizStatus.RM_RK);
|
||||||
}else if (point.getStorageType().equals(BizStatus.TP_STO)){
|
}else if (point.getStorageType().equals(BizStatus.TP_STO)){
|
||||||
/* 半成品入库*/
|
/* 半成品入库*/
|
||||||
agvTaskService.addAgvAsn(BizStatus.SM_RK);
|
apiResult = agvTaskService.addAgvAsn(BizStatus.SM_RK);
|
||||||
|
}
|
||||||
|
if (apiResult.getStatus()!=200){
|
||||||
|
throw new BadRequestException(point.getStorageType()+"/"+apiResult.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public void pickTask() {
|
public void pickTask() {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ spring:
|
||||||
druid:
|
druid:
|
||||||
db-type: com.alibaba.druid.pool.DruidDataSource
|
db-type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:nrwms2}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
|
url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:wms}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
|
||||||
username: ${DB_USER:root}
|
username: ${DB_USER:root}
|
||||||
password: ${DB_PWD:123456}
|
password: ${DB_PWD:123456}
|
||||||
# password: ${DB_PWD:Youchain@56}
|
# password: ${DB_PWD:Youchain@56}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ spring:
|
||||||
freemarker:
|
freemarker:
|
||||||
check-template-location: false
|
check-template-location: false
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: dock
|
||||||
jackson:
|
jackson:
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
data:
|
data:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue