提交
This commit is contained in:
@@ -34,16 +34,16 @@ public class CribbinginfoDto implements Serializable {
|
||||
private String product_code;
|
||||
|
||||
/** A长边 */
|
||||
private String AlongSide;
|
||||
private String alongside;
|
||||
|
||||
/** B短边 */
|
||||
private String BshortSide;
|
||||
private String bshortside;
|
||||
|
||||
/** H梯形高 */
|
||||
private String Htrapezoidal;
|
||||
private String htrapezoidal;
|
||||
|
||||
/** W厚度 */
|
||||
private String Wthickness;
|
||||
private String wthickness;
|
||||
|
||||
/** 当前垛盘数 */
|
||||
private String tray_qty;
|
||||
|
||||
@@ -11,6 +11,7 @@ import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -25,47 +26,47 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
|
||||
/**
|
||||
* @description 服务实现
|
||||
* @author qinx
|
||||
* @date 2022-09-26
|
||||
**/
|
||||
* @author qinx
|
||||
* @description 服务实现
|
||||
* @date 2022-09-26
|
||||
**/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class CribbinginfoServiceImpl implements CribbinginfoService {
|
||||
|
||||
@Override
|
||||
public Map<String,Object> queryAll(Map whereJson, Pageable page){
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1=1", "update_time desc");
|
||||
final JSONObject json = rb.pageResult();
|
||||
return json;
|
||||
public Map<String, Object> queryAll(Map whereJson, Pageable page) {
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
ResultBean rb = wo.pagequery(WqlUtil.getHttpContext(page), "1=1", "update_time desc");
|
||||
final JSONObject json = rb.pageResult();
|
||||
return json;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CribbinginfoDto> queryAll(Map whereJson){
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
JSONArray arr = wo.query().getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(arr)) return arr.toJavaList(CribbinginfoDto.class);
|
||||
return null;
|
||||
public List<CribbinginfoDto> queryAll(Map whereJson) {
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
JSONArray arr = wo.query().getResultJSONArray(0);
|
||||
if (ObjectUtil.isNotEmpty(arr)) return arr.toJavaList(CribbinginfoDto.class);
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CribbinginfoDto findById(Long info_id) {
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
JSONObject json = wo.query("info_id = '" + info_id + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(json)){
|
||||
return json.toJavaObject( CribbinginfoDto.class);
|
||||
if (ObjectUtil.isNotEmpty(json)) {
|
||||
return json.toJavaObject(CribbinginfoDto.class);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CribbinginfoDto findByCode(String code) {
|
||||
public CribbinginfoDto findByCode(String code) {
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
JSONObject json = wo.query("code ='" + code + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isNotEmpty(json)){
|
||||
return json.toJavaObject( CribbinginfoDto.class);
|
||||
if (ObjectUtil.isNotEmpty(json)) {
|
||||
return json.toJavaObject(CribbinginfoDto.class);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -87,6 +88,10 @@ public class CribbinginfoServiceImpl implements CribbinginfoService {
|
||||
|
||||
WQLObject wo = WQLObject.getWQLObject("md_me_cribbinginfo");
|
||||
JSONObject json = JSONObject.parseObject(JSONObject.toJSONString(dto));
|
||||
/*json.put("alongSide", dto.getAlongSide());
|
||||
json.put("BshortSide", dto.getBshortSide());
|
||||
json.put("Htrapezoidal", dto.getHtrapezoidal());
|
||||
json.put("Wthickness", dto.getWthickness());*/
|
||||
wo.insert(json);
|
||||
}
|
||||
|
||||
@@ -117,5 +122,5 @@ public class CribbinginfoServiceImpl implements CribbinginfoService {
|
||||
wo.delete("info_id = '" + info_id + "'");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user