|
@@ -14,10 +14,10 @@ public class GoodsProvider {
|
|
|
|
|
|
public String search(GoodsPageDto param, Integer display) {
|
|
|
StringBuffer sql = new StringBuffer(
|
|
|
- "select a.*,b.name as goodsTypeName, c.name as projectName, d.name as projectTypeName from tb_goods a " +
|
|
|
+ "select a.*,b.name as goodsTypeName, c.name as projectName, c.level as level, d.name as projectTypeName from tb_goods a " +
|
|
|
"left join tb_goods_type b on b.id=a.goods_type_id " +
|
|
|
"left join tb_project c on c.id=a.project_id " +
|
|
|
- "left join tb_project_type d on d.id=c.type_id where a.is_delete=0 and a.project_id is not NULL ");
|
|
|
+ "left join tb_project_type d on d.id=c.type_id where a.is_delete=0 and c.is_delete=0 and a.project_id is not NULL ");
|
|
|
|
|
|
// if (StringUtils.isNotBlank(param.getStartTime()) && StringUtils.isNotBlank(param.getEndTime())) {
|
|
|
//
|
|
@@ -51,7 +51,7 @@ public class GoodsProvider {
|
|
|
|
|
|
|
|
|
public String strSql(String strSql) {
|
|
|
- log.info("sql: {}", strSql);
|
|
|
+ log.warn("sql: {}", strSql);
|
|
|
return strSql;
|
|
|
}
|
|
|
|