1.保存代码

master
x_z 2 years ago
parent 023651133f
commit ff3c880aa3

@ -11,4 +11,5 @@ import org.springframework.web.bind.annotation.RestController;
public class BasicBusTypePreController {
}

@ -0,0 +1,37 @@
package com.glxp.api.req.basic;
import com.glxp.api.req.ListPageRequest;
import lombok.Data;
/**
*
*/
@Data
public class FilterBusTypeChangeRequest extends ListPageRequest {
/**
*
*/
private String originAction;
/**
* 0:1:
*/
private Boolean enable;
/**
*
*/
private String originName;
/**
* 1:2.3.
*/
private Integer type;
/**
*
*/
private String lastUpdateTime;
}

@ -0,0 +1,14 @@
package com.glxp.api.req.basic;
import com.glxp.api.req.ListPageRequest;
import lombok.Data;
/**
*
*/
@Data
public class FilterBusTypePreRequest extends ListPageRequest {
}

@ -0,0 +1,22 @@
package com.glxp.api.req.thrsys;
import com.glxp.api.req.ListPageRequest;
import lombok.Data;
/**
*
*/
@Data
public class FilterThrBusTypeOriginRequest extends ListPageRequest {
/**
*
*/
private String action;
/**
*
*/
private String thirdAction;
}

@ -0,0 +1,10 @@
package com.glxp.api.res.basic;
import lombok.Data;
/**
* VO
*/
@Data
public class BasicBusTypeChangeResponse {
}

@ -0,0 +1,11 @@
package com.glxp.api.res.basic;
import lombok.Data;
/**
* VO
*/
@Data
public class BasicBusTypePreResponse {
}

@ -7,4 +7,100 @@ import lombok.Data;
*/
@Data
public class BasicBussinessTypeResponse {
private Integer id;
private String action;
private String name;
private Boolean enable;
private String remark;
private String mainAction;
private String thirdSysFk;
private String thirdId;
private String thirdName;
private Boolean enabled;
/**
*
*/
private Boolean checkEnable;
/**
*
*/
private Boolean advanceType;
private Boolean changeEnable;
private Boolean genUnit;
private String defaultUnit;
private Boolean spUse;
private Boolean secCheckEnable;
private boolean checkUdims;
private boolean checkPdaEd;
private boolean checkPdaUn;
private boolean checkPc;
private boolean checkWebNew;
private boolean checkChange;
private boolean secCheckUdims;
private boolean secCheckPdaEd;
private boolean secCheckPdaUn;
private boolean secCheckPc;
private boolean secCheckWebNew;
private boolean secCheckChange;
private int corpType;
private String storageCode;
/**
*
*/
private String supplementOrderType;
/**
*
*/
private boolean enableSupplementOrder;
private boolean checkBalacne;
private boolean secCheckBalacne;
private boolean useDyCount;
private boolean expireTip;
private String prefix;
private String localPrefix;
private boolean preIn;
private boolean outTospms;
private boolean ullageFill;
private boolean scanPreIn;
private boolean vailInv;
private boolean entrutSpms;
private boolean codeFillCheck;
private String defaultSubInv;
private String defaultInv;
/**
* 01:
*/
private int orderVisibleType;
/**
*
*/
private boolean supplementAll;
private boolean checkCopy;
private boolean secCheckCopy;
/**
*
*/
private boolean checkSelect;
private boolean checkSp;
/**
*
*/
private boolean secCheckSp;
}

@ -0,0 +1,10 @@
package com.glxp.api.res.thrsys;
import lombok.Data;
/**
* VO
*/
@Data
public class ThrBusTypeOriginResponse {
}

@ -1,7 +1,30 @@
package com.glxp.api.service.basic;
import com.glxp.api.entity.basic.BasicBusTypeChangeEntity;
import com.glxp.api.req.basic.FilterBusTypeChangeRequest;
import com.glxp.api.res.basic.BasicBusTypeChangeResponse;
import java.util.List;
/**
* Service
*/
public interface IBasicBusTypeChangeService {
/**
*
*
* @param filterBusTypeChangeRequest
* @return
*/
List<BasicBusTypeChangeResponse> filterList(FilterBusTypeChangeRequest filterBusTypeChangeRequest);
/**
*
*
* @param basicBusTypeChangeEntity
* @return
*/
int insert(BasicBusTypeChangeEntity basicBusTypeChangeEntity);
}

@ -1,12 +1,48 @@
package com.glxp.api.service.basic.impl;
import com.glxp.api.dao.basic.BasicBusTypeChangeDao;
import com.glxp.api.entity.basic.BasicBusTypeChangeEntity;
import com.glxp.api.req.basic.FilterBusTypeChangeRequest;
import com.glxp.api.res.basic.BasicBusTypeChangeResponse;
import com.glxp.api.service.auth.CustomerService;
import com.glxp.api.service.basic.IBasicBusTypeChangeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class BasicBusTypeChangeServiceImpl implements IBasicBusTypeChangeService {
@Resource
private CustomerService customerService;
@Resource
private BasicBusTypeChangeDao basicBusTypeChangeDao;
@Override
public List<BasicBusTypeChangeResponse> filterList(FilterBusTypeChangeRequest filterBusTypeChangeRequest) {
return null;
}
@Override
public int insert(BasicBusTypeChangeEntity basicBusTypeChangeEntity) {
setUpdateInfo(basicBusTypeChangeEntity);
return basicBusTypeChangeDao.insert(basicBusTypeChangeEntity);
}
private void setUpdateInfo(BasicBusTypeChangeEntity basicBusTypeChangeEntity) {
Date now = new Date();
String userId = String.valueOf(customerService.getUserBean().getId());
basicBusTypeChangeEntity.setUpdateTime(now);
basicBusTypeChangeEntity.setUpdateUser(userId);
if (null == basicBusTypeChangeEntity.getId()) {
basicBusTypeChangeEntity.setCreateTime(now);
basicBusTypeChangeEntity.setCreateUser(userId);
}
}
}

Loading…
Cancel
Save