花名册显示定制模板保存BUB修复
This commit is contained in:
parent
6e6c66687b
commit
0b0fd72931
|
|
@ -30,6 +30,8 @@ public interface JclOrgCustomTemplateMapper {
|
|||
|
||||
List<Long> listAllId();
|
||||
|
||||
List<Long> listAllIdByCreator(@Param("creator") Integer creator);
|
||||
|
||||
int deleteByIds(@Param("ids") Collection<Long> ids);
|
||||
|
||||
int updateUsed(@Param("isused")String isused,@Param("id") String id,@Param("creator") String creator);
|
||||
|
|
|
|||
|
|
@ -147,4 +147,10 @@
|
|||
from JCL_ORG_CUSTOM_TEMPLATE t where t.isused = #{isused} and t.creator = #{creator}
|
||||
</select>
|
||||
|
||||
<select id="listAllIdByCreator" resultType="java.lang.Long">
|
||||
select
|
||||
id
|
||||
from jcl_org_custom_template where creator = #{creator} order by id
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
|
|||
|
|
@ -348,7 +348,8 @@ public class HrmResourceServiceImpl extends Service implements HrmResourceServic
|
|||
public Integer updateCustomTemplate(Map<String, Object> params) {
|
||||
int rowNum = getIntValue((String) params.get("rownum"));
|
||||
int count = 0;
|
||||
List<Long> allIds = getJclOrgCustomTemplateMapper().listAllId();
|
||||
// 只查询当前人员的模板数据
|
||||
List<Long> allIds = getJclOrgCustomTemplateMapper().listAllIdByCreator(user.getUID());
|
||||
String currentDate = OrganizationDateUtil.getFormatLocalDate(new java.util.Date());
|
||||
List<String> nameList = new ArrayList<>();
|
||||
for (int i = 0; i < rowNum; i++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue