fix:分标委理事会权限问题
This commit is contained in:
+2
@@ -167,6 +167,8 @@ public class PayCaseCommitteeController extends JeroController<PayCaseCommittee,
|
|||||||
}
|
}
|
||||||
PayCaseCommittee payCaseCommittee = new PayCaseCommittee();
|
PayCaseCommittee payCaseCommittee = new PayCaseCommittee();
|
||||||
BeanUtils.copyProperties(payCaseCommitteeDTO, payCaseCommittee);
|
BeanUtils.copyProperties(payCaseCommitteeDTO, payCaseCommittee);
|
||||||
|
LoginUser sysUser =(LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
payCaseCommittee.setCreateById(sysUser.getId());
|
||||||
payCaseCommitteeService.save(payCaseCommittee);
|
payCaseCommitteeService.save(payCaseCommittee);
|
||||||
return Result.OK("添加成功!");
|
return Result.OK("添加成功!");
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -95,12 +95,12 @@ public class PayCaseCommitteeSubitemController extends JeroController<PayCaseCom
|
|||||||
LoginUser sysUser =(LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser =(LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
String roleCode = sysUser.getRoleCode();
|
String roleCode = sysUser.getRoleCode();
|
||||||
List<String> roleCodes = new ArrayList<>(Arrays.asList(roleCode.split(",")));
|
List<String> roleCodes = new ArrayList<>(Arrays.asList(roleCode.split(",")));
|
||||||
String userName=null;
|
String userId=null;
|
||||||
if (roleCodes.contains(constant.XMFZR)){
|
if (roleCodes.contains(constant.XMFZR)){
|
||||||
userName=sysUser.getUsername();
|
userId=sysUser.getId();
|
||||||
}
|
}
|
||||||
Page<FindByName> page = new Page<>(pageNo, pageSize);
|
Page<FindByName> page = new Page<>(pageNo, pageSize);
|
||||||
IPage<FindByName> pageList = payCaseCommitteeSubitemService.listThree(page,contactsNames,companyNames,fenBiaoWeiNames,userName);
|
IPage<FindByName> pageList = payCaseCommitteeSubitemService.listThree(page,contactsNames,companyNames,fenBiaoWeiNames,userId);
|
||||||
if (!CollectionUtils.isEmpty(pageList.getRecords())) {
|
if (!CollectionUtils.isEmpty(pageList.getRecords())) {
|
||||||
try {
|
try {
|
||||||
pageList.getRecords().forEach(p -> {
|
pageList.getRecords().forEach(p -> {
|
||||||
|
|||||||
+2
@@ -59,6 +59,8 @@ public class PayCaseCouncilController extends JeroController<PayCaseCouncil, IPa
|
|||||||
}
|
}
|
||||||
PayCaseCouncil payCaseCouncil1 = new PayCaseCouncil();
|
PayCaseCouncil payCaseCouncil1 = new PayCaseCouncil();
|
||||||
BeanUtils.copyProperties(payCaseCouncil, payCaseCouncil1);
|
BeanUtils.copyProperties(payCaseCouncil, payCaseCouncil1);
|
||||||
|
LoginUser sysUser =(LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
|
payCaseCouncil1.setCreateById(sysUser.getId());
|
||||||
payCaseCouncilService.save(payCaseCouncil1);
|
payCaseCouncilService.save(payCaseCouncil1);
|
||||||
return Result.OK("添加成功!");
|
return Result.OK("添加成功!");
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -88,12 +88,12 @@ public class PayCaseCouncilSubitemController extends JeroController<PayCaseCounc
|
|||||||
LoginUser sysUser =(LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser =(LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
String roleCode = sysUser.getRoleCode();
|
String roleCode = sysUser.getRoleCode();
|
||||||
List<String> roleCodes = new ArrayList<>(Arrays.asList(roleCode.split(",")));
|
List<String> roleCodes = new ArrayList<>(Arrays.asList(roleCode.split(",")));
|
||||||
String userName=null;
|
String userId=null;
|
||||||
if (roleCodes.contains(constant.XMFZR)){
|
if (roleCodes.contains(constant.XMFZR)){
|
||||||
userName=sysUser.getUsername();
|
userId=sysUser.getId();
|
||||||
}
|
}
|
||||||
Page<councilList> page = new Page<>(pageNo, pageSize);
|
Page<councilList> page = new Page<>(pageNo, pageSize);
|
||||||
IPage<councilList> pageList = payCaseCouncilSubitemService.listThree(page,contactsNames,companyNames,councilNames,userName);
|
IPage<councilList> pageList = payCaseCouncilSubitemService.listThree(page,contactsNames,companyNames,councilNames,userId);
|
||||||
if (!CollectionUtils.isEmpty(pageList.getRecords())) {
|
if (!CollectionUtils.isEmpty(pageList.getRecords())) {
|
||||||
try {
|
try {
|
||||||
pageList.getRecords().forEach(p -> {
|
pageList.getRecords().forEach(p -> {
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ public class PayCaseCommittee implements Serializable {
|
|||||||
/**创建人*/
|
/**创建人*/
|
||||||
@ApiModelProperty(value = "创建人")
|
@ApiModelProperty(value = "创建人")
|
||||||
private java.lang.String createBy;
|
private java.lang.String createBy;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人id")
|
||||||
|
private java.lang.String createById;
|
||||||
/**创建时间*/
|
/**创建时间*/
|
||||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||||
|
|||||||
@@ -50,6 +50,9 @@ public class PayCaseCouncil implements Serializable {
|
|||||||
/**创建人*/
|
/**创建人*/
|
||||||
@ApiModelProperty(value = "创建人")
|
@ApiModelProperty(value = "创建人")
|
||||||
private java.lang.String createBy;
|
private java.lang.String createBy;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "创建人id")
|
||||||
|
private java.lang.String createById;
|
||||||
/**创建时间*/
|
/**创建时间*/
|
||||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface PayCaseCommitteeSubitemMapper extends BaseMapper<PayCaseCommitteeSubitem> {
|
public interface PayCaseCommitteeSubitemMapper extends BaseMapper<PayCaseCommitteeSubitem> {
|
||||||
|
|
||||||
IPage<FindByName> listThree (Page<FindByName> page,@Param("name") String name,@Param("companyName") String companyName,@Param("fenBiaoWeiName") String fenBiaoWeiName,@Param("userName") String userName);
|
IPage<FindByName> listThree (Page<FindByName> page,@Param("name") String name,@Param("companyName") String companyName,@Param("fenBiaoWeiName") String fenBiaoWeiName,@Param("userId") String userId);
|
||||||
|
|
||||||
List<payCaseCommitteeSubitemVO> listTwo (@Param(Constants.WRAPPER) Wrapper<PayCaseCommitteeSubitem> wrapper);
|
List<payCaseCommitteeSubitemVO> listTwo (@Param(Constants.WRAPPER) Wrapper<PayCaseCommitteeSubitem> wrapper);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface PayCaseCouncilSubitemMapper extends BaseMapper<PayCaseCouncilSubitem> {
|
public interface PayCaseCouncilSubitemMapper extends BaseMapper<PayCaseCouncilSubitem> {
|
||||||
|
|
||||||
IPage<councilList> listThree(Page<councilList> page, @Param("contactsNames")String contactsNames, @Param("companyNames") String companyNames, @Param("councilNames") String councilNames,@Param("userName") String userName);
|
IPage<councilList> listThree(Page<councilList> page, @Param("contactsNames")String contactsNames, @Param("companyNames") String companyNames, @Param("councilNames") String councilNames,@Param("userId") String userId);
|
||||||
|
|
||||||
List<ChooseExcelCouncil> chooseExcel(@Param("idList")ArrayList<String> idList);
|
List<ChooseExcelCouncil> chooseExcel(@Param("idList")ArrayList<String> idList);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -31,8 +31,8 @@
|
|||||||
<if test=" fenBiaoWeiName!=null and fenBiaoWeiName != ''">
|
<if test=" fenBiaoWeiName!=null and fenBiaoWeiName != ''">
|
||||||
AND pe.name LIKE CONCAT('%',#{fenBiaoWeiName},'%')
|
AND pe.name LIKE CONCAT('%',#{fenBiaoWeiName},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test=" userName!=null and userName != ''">
|
<if test=" userId!=null and userId != ''">
|
||||||
AND (pe.create_by = #{userName} or pme.director_name = #{userName})
|
AND (pe.create_by_id = #{userId} or pme.director_id = #{userId})
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
group by pe.id
|
group by pe.id
|
||||||
|
|||||||
+2
-2
@@ -31,8 +31,8 @@
|
|||||||
<if test=" councilNames!=null and councilNames != ''">
|
<if test=" councilNames!=null and councilNames != ''">
|
||||||
AND pe.name LIKE CONCAT('%',#{councilNames},'%')
|
AND pe.name LIKE CONCAT('%',#{councilNames},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test=" userName!=null and userName != ''">
|
<if test=" userId!=null and userId != ''">
|
||||||
AND (pe.create_by = #{userName} or pme.director_name = #{userName})
|
AND (pe.create_by_id = #{userId} or pme.director_id = #{userId})
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
group by pe.id
|
group by pe.id
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ public interface IPayCaseCommitteeSubitemService extends IService<PayCaseCommitt
|
|||||||
|
|
||||||
List<payCaseCommitteeSubitemVO> listTwo(QueryWrapper<PayCaseCommitteeSubitem> queryWrapper);
|
List<payCaseCommitteeSubitemVO> listTwo(QueryWrapper<PayCaseCommitteeSubitem> queryWrapper);
|
||||||
|
|
||||||
IPage<FindByName> listThree(Page<FindByName> page,String name,String companyName,String fenBiaoWeiName,String userName);
|
IPage<FindByName> listThree(Page<FindByName> page,String name,String companyName,String fenBiaoWeiName,String userId);
|
||||||
|
|
||||||
List<ChooseExcelWorkingGroup> listForExcel(String name, String companyName, String councilName);
|
List<ChooseExcelWorkingGroup> listForExcel(String name, String companyName, String councilName);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public interface IPayCaseCouncilSubitemService extends IService<PayCaseCouncilSubitem> {
|
public interface IPayCaseCouncilSubitemService extends IService<PayCaseCouncilSubitem> {
|
||||||
|
|
||||||
IPage<councilList> listThree(Page<councilList> page,String contactsNames, String companyNames, String councilNames, String userName);
|
IPage<councilList> listThree(Page<councilList> page,String contactsNames, String companyNames, String councilNames, String userId);
|
||||||
|
|
||||||
List<ChooseExcelCouncil> listForExcel(String contactsNames, String companyNames, String councilNames);
|
List<ChooseExcelCouncil> listForExcel(String contactsNames, String companyNames, String councilNames);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -41,8 +41,8 @@ public class PayCaseCommitteeSubitemServiceImpl extends ServiceImpl<PayCaseCommi
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IPage<FindByName> listThree(Page<FindByName> page,String name,String companyName,String fenBiaoWeiName,String userName) {
|
public IPage<FindByName> listThree(Page<FindByName> page,String name,String companyName,String fenBiaoWeiName,String userId) {
|
||||||
return payCaseCommitteeSubitemMapper.listThree(page,name,companyName,fenBiaoWeiName,userName);
|
return payCaseCommitteeSubitemMapper.listThree(page,name,companyName,fenBiaoWeiName,userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -26,8 +26,8 @@ public class PayCaseCouncilSubitemServiceImpl extends ServiceImpl<PayCaseCouncil
|
|||||||
@Resource
|
@Resource
|
||||||
private PayCaseCouncilSubitemMapper payCaseCouncilSubitemMapper;
|
private PayCaseCouncilSubitemMapper payCaseCouncilSubitemMapper;
|
||||||
@Override
|
@Override
|
||||||
public IPage<councilList> listThree(Page<councilList> page, String contactsNames, String companyNames, String councilNames, String userName) {
|
public IPage<councilList> listThree(Page<councilList> page, String contactsNames, String companyNames, String councilNames, String userId) {
|
||||||
return payCaseCouncilSubitemMapper.listThree(page,contactsNames,companyNames,councilNames,userName);
|
return payCaseCouncilSubitemMapper.listThree(page,contactsNames,companyNames,councilNames,userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user