统计报表

This commit is contained in:
tangw 2026-07-10 18:05:35 +08:00
parent 3ea7b5919c
commit 16b646f8e4
5 changed files with 45 additions and 5 deletions

View File

@ -28,6 +28,6 @@ public class ComStatsParameter {
private String updateBy;
private Date updateTime;
private String remark;
private Long paramWidth;
}

View File

@ -18,4 +18,6 @@ public interface LocalconfigMapper {
int delComLocalconfigByIds(Long[] sids);
int updateComLocalconfig(ComLocalconfig comLocalconfig);
List<Map<String,Object>> selectinstrgroupmain();
List<Map<String,Object>> selectxmfee();
List<Map<String,Object>> selectzt();
}

View File

@ -191,6 +191,12 @@ public class ComLocalconfigServiceImpl implements ComLocalconfigService {
return getfzdh();
case "USR":
return getusr();
case "sqxm":
case "SQXM":
return getsqxm();
case "zt":
case "ZT":
return getzt();
default:
if (zdlb.contains("item:")) {
String yq=zdlb.trim().substring(5);
@ -203,6 +209,28 @@ public class ComLocalconfigServiceImpl implements ComLocalconfigService {
}
return commonUtil.getComDictList(zdlb);
}
public List<Map<String, String>> getsqxm() {
List<Map<String, String>> list = new ArrayList<>();
List<Map<String, Object>> xmInfolist = localconfigMapper.selectxmfee();
for (Map<String, Object> xmInfo : xmInfolist) {
Map<String, String> map = new HashMap<>();
map.put("zddh", xmInfo.get("sfxmdh").toString());
map.put("zdmc", xmInfo.get("sfxmmc").toString());
list.add(map);
}
return list;
}
public List<Map<String, String>> getzt() {
List<Map<String, String>> list = new ArrayList<>();
List<Map<String, Object>> xmInfolist = localconfigMapper.selectzt();
for (Map<String, Object> xmInfo : xmInfolist) {
Map<String, String> map = new HashMap<>();
map.put("zddh", xmInfo.get("dict_value").toString());
map.put("zdmc", xmInfo.get("dict_label").toString());
list.add(map);
}
return list;
}
public List<Map<String, String>> getusr() {
List<Map<String, String>> list = new ArrayList<>();
List<ComUsr> usrlist = commonUtil.getComUsrList("");

View File

@ -36,6 +36,12 @@
<select id="selectinstrgroupmain" resultType="map">
select fzdh,fzmc from lab_instrgroupmain
</select>
<select id="selectxmfee" resultType="map">
select sfxmdh,sfxmmc from xm_fee
</select>
<select id="selectzt" resultType="map">
select dict_value,dict_label from sys_dict_data where dict_type='lis_req_type'
</select>
<insert id="insertComLocalconfig" parameterType="com.czlis.common.core.domain.entity.lis.ComLocalconfig" useGeneratedKeys="true" keyProperty="sid">
insert into com_localconfig(
<if test="sid != null and sid != 0">sid,</if>

View File

@ -21,10 +21,11 @@
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="paramWidth" column="param_width" />
</resultMap>
<sql id="selectComStatsParameterVo">
select param_id,param_type,param_code,param_name,param_optiontype,param_sql,param_hide,param_sort,stats_code,param_defvalue,param_sequence,
status,create_by,create_time,update_by,update_time,remark,precondition from Com_stats_parameter
status,create_by,create_time,update_by,update_time,remark,precondition,param_width from Com_stats_parameter
</sql>
<select id="selectComStatsParameterList" resultMap="ComStatsParameterResult" parameterType="com.czlis.common.core.domain.entity.lis.ComStatsParameter" >
<include refid="selectComStatsParameterVo"></include>
@ -71,7 +72,7 @@
<select id="checkDictNameUnique" parameterType="String" resultMap="ComStatsParameterResult">
select top 1 param_id,param_type,param_code,param_name,param_optiontype,param_sql,param_sort,param_hide,stats_code,param_defvalue,param_sequence,
status,create_by,create_time,update_by,update_time,remark,precondition
status,create_by,create_time,update_by,update_time,remark,precondition,param_width
from Com_stats_parameter
where param_name=#{paramName} and param_type = #{paramType} and stats_code = #{statsCode}
</select>
@ -79,7 +80,7 @@
<select id="checkDictCodeUnique" parameterType="String" resultMap="ComStatsParameterResult">
select top 1 param_id,param_type,param_code,param_name,param_optiontype,param_sql,
param_sort,param_hide,stats_code,param_defvalue,param_sequence,
status,create_by,create_time,update_by,update_time,remark,precondition
status,create_by,create_time,update_by,update_time,remark,precondition,param_width
from Com_stats_parameter
where param_code=#{paramCode} and param_type = #{paramType} and stats_code = #{statsCode}
</select>
@ -100,6 +101,7 @@
<if test="status != null and status != ''">status,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="paramWidth != null ">param_width,</if>
create_time
)values(
<if test="paramId != null and paramId != 0">#{paramId},</if>
@ -117,6 +119,7 @@
<if test="status != null and status != ''">#{status},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="paramWidth != null ">#{paramWidth},</if>
getdate()
)
</insert>
@ -139,7 +142,7 @@
param_optiontype = #{paramOptiontype},param_defvalue= #{paramDefvalue},
param_sequence= #{paramSequence},precondition=#{precondition},
param_sql = #{paramSql},param_hide = #{paramHide},
param_sort = #{paramSort},status = #{status},
param_sort = #{paramSort},status = #{status},param_width = #{paramWidth},
remark = #{remark},update_by = #{updateBy},update_time = getdate()
where param_id = #{paramId}
</update>
@ -159,6 +162,7 @@
<if test="status != null and status != ''">status = #{status},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="paramWidth != null">param_width = #{paramWidth},</if>
update_time = getdate()
</set>
where param_id = #{paramId}