正式环境bug修改

This commit is contained in:
guoshengxiong 2024-07-02 14:19:35 +08:00
parent 83353faa56
commit a83c2103b3
6 changed files with 11 additions and 2 deletions

View File

@ -38,6 +38,7 @@ public class DictionaryItemServiceImpl extends ServiceImpl<DictionaryItemMapper,
* @param dictionaryEncoding * @param dictionaryEncoding
* @return * @return
*/ */
@Override
public List<DictionaryItem> getDictList(String dictionaryEncoding, String projectSn) { public List<DictionaryItem> getDictList(String dictionaryEncoding, String projectSn) {
if (StringUtils.isNotBlank(projectSn)) { if (StringUtils.isNotBlank(projectSn)) {
String newEncoding = dictionaryEncoding + "_" + projectSn; String newEncoding = dictionaryEncoding + "_" + projectSn;

View File

@ -59,6 +59,7 @@ public class ProjectEnterpriseController {
@ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "body", required = true, dataType = "Integer"), @ApiImplicitParam(name = "pageNo", value = "第几页", paramType = "body", required = true, dataType = "Integer"),
@ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "body", required = true, dataType = "Integer"), @ApiImplicitParam(name = "pageSize", value = "每页显示条数", paramType = "body", required = true, dataType = "Integer"),
@ApiImplicitParam(name = "cbsProjectType", value = "项目类型(字典)", paramType = "body", required = true, dataType = "Integer"), @ApiImplicitParam(name = "cbsProjectType", value = "项目类型(字典)", paramType = "body", required = true, dataType = "Integer"),
@ApiImplicitParam(name = "isCountMainEnterprise", value = "1是总包", paramType = "body", required = false, dataType = "String"),
}) })
@PostMapping(value = "/list") @PostMapping(value = "/list")
public Result<IPage<EnterpriseInfo>> queryPageList(@RequestBody Map<String, Object> map) { public Result<IPage<EnterpriseInfo>> queryPageList(@RequestBody Map<String, Object> map) {

View File

@ -142,6 +142,9 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="param.isCountMainEnterprise == '1'.toString()">
and b.parent_project_enterprise_id = 0
</if>
order by b.sort_num order by b.sort_num
</select> </select>

View File

@ -209,7 +209,8 @@
parameterType="java.util.Map"> parameterType="java.util.Map">
SELECT COUNT(1) as alarmNum, SELECT COUNT(1) as alarmNum,
DATE_FORMAT(w1.create_time, '%Y-%m-%d') as date, DATE_FORMAT(w1.create_time, '%Y-%m-%d') as date,
w1.alarm_type as alarmType w1.alarm_type as alarmType,
w1.project_sn
from ai_analyse_hard_ware_alarm_record w1 from ai_analyse_hard_ware_alarm_record w1
INNER JOIN project a ON w1.project_sn = a.project_sn INNER JOIN project a ON w1.project_sn = a.project_sn
LEFT JOIN company cp ON a.company_sn = cp.company_sn LEFT JOIN company cp ON a.company_sn = cp.company_sn

View File

@ -284,7 +284,7 @@ public class XzSecurityQualityInspectionRecordController {
@ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, dataType = "String"), @ApiImplicitParam(name = "projectSn", value = "项目SN", paramType = "body", required = true, dataType = "String"),
@ApiImplicitParam(name = "inspectStartTime", value = "检查开始时间", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectStartTime", value = "检查开始时间", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "body", required = false, dataType = "String"), @ApiImplicitParam(name = "inspectEndTime", value = "检查结束时间", paramType = "body", required = false, dataType = "String"),
@ApiImplicitParam(name = "isStatsByWeek", value = "按周统计统计一个月1-7号算一周类推1是", paramType = "body", required = false, dataType = "Integer"), @ApiImplicitParam(name = "isStatsByWeek", value = "按周统计本月统计一个月1-7号算一周类推1是", paramType = "body", required = false, dataType = "Integer"),
}) })
@PostMapping(value = "/selectQualityStatisticsNumList") @PostMapping(value = "/selectQualityStatisticsNumList")
public Result<List<XzSecurityQualityInspectionRecordTotalVo>> selectQualityStatisticsNumList(@RequestBody Map<String, Object> map) { public Result<List<XzSecurityQualityInspectionRecordTotalVo>> selectQualityStatisticsNumList(@RequestBody Map<String, Object> map) {

View File

@ -185,6 +185,9 @@
and t.status != 6 and t.status != 6
<include refid="whereCondition"> <include refid="whereCondition">
</include> </include>
<if test="param.isStatsByWeek == '1'.toString()">
and t.inspect_time <![CDATA[>=]]> concat(date_format(current_date,'%Y-%m'),'-01 00:00:00')
</if>
<if test="param.isStatsByWeek == '1'.toString()"> <if test="param.isStatsByWeek == '1'.toString()">
group by whichWeekOfMonth group by whichWeekOfMonth
</if> </if>