Commit b33ba283 by sunxin

整体优化测试

parent f18e2721
...@@ -406,8 +406,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -406,8 +406,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
report.setTransferName(exchangeAfterUser); report.setTransferName(exchangeAfterUser);
/*封装转换集团信息*/ /*封装转换集团信息*/
String supplementGroup = report.getSupplementGroup(); /* String supplementGroup = report.getSupplementGroup();*/
if(StringUtils.isNoneBlank(supplementGroup)){ /* if(StringUtils.isNoneBlank(supplementGroup)){
if("3437402691677202102".equals(supplementGroup)){ if("3437402691677202102".equals(supplementGroup)){
report.setSupplementGroup("集团本部"); report.setSupplementGroup("集团本部");
}else if("3510129313047280678".equals(supplementGroup)){ }else if("3510129313047280678".equals(supplementGroup)){
...@@ -422,11 +422,17 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -422,11 +422,17 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
}else{ }else{
report.setSupplementGroup("--"); report.setSupplementGroup("--");
} }*/
/*封装拼接移交部门信息*/ /*封装拼接移交部门信息*/
String transferGroup = report.getTransferGroup(); if(StringUtils.isNotBlank(report.getTransferGroup()) && StringUtils.isNotBlank(report.getTransferArea()) && StringUtils.isNotBlank(report.getTransferDepartment())){
report.setTransferDepartment(report.getTransferGroup()+"--"+report.getTransferArea()+"--"+report.getTransferDepartment());
}else{
report.setTransferDepartment("--");
}
/* String transferGroup = report.getTransferGroup();
if(StringUtils.isNoneBlank(transferGroup)){ if(StringUtils.isNoneBlank(transferGroup)){
if("3437402691677202102".equals(transferGroup)){ if("3437402691677202102".equals(transferGroup)){
report.setTransferDepartment("集团本部--"+report.getTransferDepartment()); report.setTransferDepartment("集团本部--"+report.getTransferDepartment());
...@@ -442,7 +448,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -442,7 +448,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
}else{ }else{
report.setTransferDepartment("--"); report.setTransferDepartment("--");
} }*/
/*封装类型 类别数据*/ /*封装类型 类别数据*/
String SupplementTypeStr=""; String SupplementTypeStr="";
...@@ -655,7 +661,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -655,7 +661,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
report.setTransferName(exchangeAfterUser); report.setTransferName(exchangeAfterUser);
/*封装转换集团信息*/ /*封装转换集团信息*/
String supplementGroup = report.getSupplementGroup(); /* String supplementGroup = report.getSupplementGroup();
if(StringUtils.isNoneBlank(supplementGroup)){ if(StringUtils.isNoneBlank(supplementGroup)){
if("3437402691677202102".equals(supplementGroup)){ if("3437402691677202102".equals(supplementGroup)){
report.setSupplementGroup("集团本部"); report.setSupplementGroup("集团本部");
...@@ -671,10 +677,17 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -671,10 +677,17 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
}else{ }else{
report.setSupplementGroup("--"); report.setSupplementGroup("--");
} }*/
/*封装拼接移交部门信息*/ /*封装拼接移交部门信息*/
String transferGroup = report.getTransferGroup(); if(StringUtils.isNotBlank(report.getTransferGroup()) && StringUtils.isNotBlank(report.getTransferArea()) && StringUtils.isNotBlank(report.getTransferDepartment())){
report.setTransferDepartment(report.getTransferGroup()+"--"+report.getTransferArea()+"--"+report.getTransferDepartment());
}else{
report.setTransferDepartment("--");
}
/* String transferGroup = report.getTransferGroup();
if(StringUtils.isNoneBlank(transferGroup)){ if(StringUtils.isNoneBlank(transferGroup)){
if("3437402691677202102".equals(transferGroup)){ if("3437402691677202102".equals(transferGroup)){
report.setTransferDepartment("集团本部--"+report.getTransferDepartment()); report.setTransferDepartment("集团本部--"+report.getTransferDepartment());
...@@ -690,7 +703,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -690,7 +703,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
}else{ }else{
report.setTransferDepartment("--"); report.setTransferDepartment("--");
} }*/
/*封装类型 类别数据*/ /*封装类型 类别数据*/
......
...@@ -19,7 +19,7 @@ public class TimedTask { ...@@ -19,7 +19,7 @@ public class TimedTask {
@Autowired @Autowired
private ReportDao reportDao; private ReportDao reportDao;
@Scheduled(cron="0 0 12 * * ?") //cron表达式 每天下午6点执行 @Scheduled(cron="0 0 12 * * ?") //cron表达式 每天中午12执行
public void job1() { public void job1() {
//获取所有转为线索的举报信息 //获取所有转为线索的举报信息
ReportEntity reportEntity=new ReportEntity(); ReportEntity reportEntity=new ReportEntity();
......
...@@ -8,6 +8,7 @@ import com.ejweb.core.base.BaseController; ...@@ -8,6 +8,7 @@ import com.ejweb.core.base.BaseController;
import com.ejweb.core.persistence.Page; import com.ejweb.core.persistence.Page;
import com.ejweb.core.utils.StringUtils; import com.ejweb.core.utils.StringUtils;
import com.ejweb.modules.report.dao.CtBbtcTypeAreaDao;
import com.ejweb.modules.report.entity.CtBbtcBusType; import com.ejweb.modules.report.entity.CtBbtcBusType;
import com.ejweb.modules.report.entity.CtBbtcRegion; import com.ejweb.modules.report.entity.CtBbtcRegion;
import com.ejweb.modules.report.entity.CtBbtcTypeArea; import com.ejweb.modules.report.entity.CtBbtcTypeArea;
...@@ -47,6 +48,9 @@ public class CtBbtcBusTypeController extends BaseController { ...@@ -47,6 +48,9 @@ public class CtBbtcBusTypeController extends BaseController {
private CtBbtcBusTypeService ctBbtcBusTypeService; private CtBbtcBusTypeService ctBbtcBusTypeService;
@Autowired @Autowired
private CtBbtcTypeAreaDao ctBbtcTypeAreaDao;
@Autowired
private ReportService reportService; private ReportService reportService;
@ModelAttribute @ModelAttribute
...@@ -72,7 +76,13 @@ public class CtBbtcBusTypeController extends BaseController { ...@@ -72,7 +76,13 @@ public class CtBbtcBusTypeController extends BaseController {
@RequiresPermissions("report:ctBbtcBusType:view") @RequiresPermissions("report:ctBbtcBusType:view")
@RequestMapping(value = "form") @RequestMapping(value = "form")
public String form(CtBbtcBusType ctBbtcBusType, Model model) { public String form(CtBbtcBusType ctBbtcBusType, Model model) {
/*跟据id查询typeArea表中parentid为id的数据行,动态回显*/
CtBbtcTypeArea ctBbtcTypeArea0 =new CtBbtcTypeArea();
ctBbtcTypeArea0.setParentId(ctBbtcBusType.getId());
List<CtBbtcTypeArea> cloudAreaList = ctBbtcTypeAreaDao.getByParentId(ctBbtcTypeArea0);
model.addAttribute("ctBbtcBusType", ctBbtcBusType); model.addAttribute("ctBbtcBusType", ctBbtcBusType);
model.addAttribute("cloudAreaList", cloudAreaList);
return "modules/report/ctBbtcBusTypeForm"; return "modules/report/ctBbtcBusTypeForm";
} }
......
...@@ -518,7 +518,7 @@ public class ReportController extends BaseController { ...@@ -518,7 +518,7 @@ public class ReportController extends BaseController {
}*/ }*/
/*封装拼接移交集团信息*/ /*封装拼接移交集团信息*/
String transferGroup = reportEntity1.getTransferGroup(); /* String transferGroup = reportEntity1.getTransferGroup();
if(StringUtils.isNoneBlank(transferGroup)){ if(StringUtils.isNoneBlank(transferGroup)){
if("3437402691677202102".equals(transferGroup)){ if("3437402691677202102".equals(transferGroup)){
reportEntity1.setTransferGroup("集团本部"); reportEntity1.setTransferGroup("集团本部");
...@@ -534,7 +534,7 @@ public class ReportController extends BaseController { ...@@ -534,7 +534,7 @@ public class ReportController extends BaseController {
}else{ }else{
reportEntity1.setTransferGroup("--"); reportEntity1.setTransferGroup("--");
} }*/
if (isAdmin.equals("1") || isAdmin.equals("2")) { if (isAdmin.equals("1") || isAdmin.equals("2")) {
model.addAttribute("ifClue", true); model.addAttribute("ifClue", true);
......
...@@ -24,11 +24,21 @@ ...@@ -24,11 +24,21 @@
}); });
}); });
function addRow(list, idx, tpl, row) { function addRow(list1,list2,list3, idx, tpl, row) {
$(list).append(Mustache.render(tpl, { $(list1).append(Mustache.render(tpl, {
idx: idx, delBtn: true, row: row idx: idx, delBtn: true, row: row
})); }));
$(list2 + idx).find("select").each(function () {
$(this).val($(this).attr("data-value"));
});
$(list3 + idx).find("input[type='checkbox'], input[type='radio']").each(function () {
var ss = $(this).attr("data-value").split(',');
for (var i = 0; i < ss.length; i++) {
if ($(this).val() == ss[i]) {
$(this).attr("checked", "checked");
}
}
});
genSeqNo(); genSeqNo();
} }
...@@ -125,7 +135,7 @@ ...@@ -125,7 +135,7 @@
<tr> <tr>
<td colspan="7"> <td colspan="7">
<a href="javascript:" <a href="javascript:"
onclick="addRow('#scopeList', scopeRowIdx, scopeTpl);scopeRowIdx = scopeRowIdx + 1;" onclick="addRow('#scopeList','#supplementGroup','#supplementArea', scopeRowIdx, scopeTpl);scopeRowIdx = scopeRowIdx + 1;"
class="btn">新增使用范围</a></td> class="btn">新增使用范围</a></td>
</tr> </tr>
</tfoot> </tfoot>
...@@ -175,17 +185,21 @@ ...@@ -175,17 +185,21 @@
</td> </td>
</tr>//--> </tr>//-->
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
var scopeRowIdx = 0, var scopeRowIdx = 0,
scopeTpl = $("#scopeTpl").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, ""), scopeTpl = $("#scopeList").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, ""),
scopeTplReadOnly = $("#scopeTplReadOnly").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, ""); scopeTplReadOnly = $("#scopeTplReadOnly").html().replace(/(\/\/\<!\-\-)|(\/\/\-\->)/g, "");
/*数据回显=====================*/
$(document).ready(function () { $(document).ready(function () {
var data = ${fns:toJson(adjustBill.scopeList)}; var data = ${fns:toJson(cloudAreaList)};
for (var i = 0; i < data.length; i++) { for (var i = 0; i < data.length; i++) {
if (data[i].isCanDelete != null && data[i].isCanDelete == '1') { if (data[i].isCanDelete != null && data[i].isCanDelete == '1') {
addRow('#scopeList', scopeRowIdx, scopeTpl, data[i]); alert(data[i].group);
addRow('#scopeList','#supplementGroup','#supplementArea', scopeRowIdx, scopeTpl, data[i]);
} else { } else {
addRow('#scopeList', scopeRowIdx, scopeTplReadOnly, data[i]); addRow('#scopeList','#supplementGroup','#supplementArea', scopeRowIdx, scopeTplReadOnly, data[i]);
} }
scopeRowIdx = scopeRowIdx + 1; scopeRowIdx = scopeRowIdx + 1;
} }
......
...@@ -145,7 +145,6 @@ ...@@ -145,7 +145,6 @@
<c:if test="${user.supplementGroup eq '30721878435509835919'}">服务集团</c:if> <c:if test="${user.supplementGroup eq '30721878435509835919'}">服务集团</c:if>
<c:if test="${user.supplementGroup eq '30795782242187242020'}">文化集团</c:if> <c:if test="${user.supplementGroup eq '30795782242187242020'}">文化集团</c:if>
<c:if test="${user.supplementGroup eq '30770202834994792595'}">文旅集团</c:if>--%> <c:if test="${user.supplementGroup eq '30770202834994792595'}">文旅集团</c:if>--%>
<c:if test="${report.supplementGroup eq null}">--</c:if>
</td> </td>
<td align="center">${report.supplementArea}</td> <td align="center">${report.supplementArea}</td>
<td align="center">${report.supplementType}</td> <td align="center">${report.supplementType}</td>
......
...@@ -428,7 +428,17 @@ ...@@ -428,7 +428,17 @@
</div> </div>
</div> </div>
</c:if> </c:if>
<c:if test="${report.dealResult eq '6'}">
<div id="transferGroupid" class="control-group">
<label class="control-label">移交区域:</label>
<div class="controls">
<form:input id="transferArea" path=""
value="${report.transferArea}"
htmlEscape="false" maxlength="200"
class="input-xlarge"/>
</div>
</div>
</c:if>
<c:if test="${report.dealResult eq '6'}"> <c:if test="${report.dealResult eq '6'}">
<div id="transferDepartmentid" class="control-group"> <div id="transferDepartmentid" class="control-group">
<label class="control-label">移交部门:</label> <label class="control-label">移交部门:</label>
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
}); });
/*加载时 执行跟据集团 搜索下拉信息 解决每次刷新问题*/ /*加载时 执行跟据集团 搜索下拉信息 解决每次刷新问题*/
getRegion(); getRegion();
getTransferDepartment(); getTranArea();
}); });
function page(n, s) { function page(n, s) {
...@@ -638,7 +638,6 @@ ...@@ -638,7 +638,6 @@
<c:if test="${user.supplementGroup eq '30721878435509835919'}">服务集团</c:if> <c:if test="${user.supplementGroup eq '30721878435509835919'}">服务集团</c:if>
<c:if test="${user.supplementGroup eq '30795782242187242020'}">文化集团</c:if> <c:if test="${user.supplementGroup eq '30795782242187242020'}">文化集团</c:if>
<c:if test="${user.supplementGroup eq '30770202834994792595'}">文旅集团</c:if>--%> <c:if test="${user.supplementGroup eq '30770202834994792595'}">文旅集团</c:if>--%>
<c:if test="${report.supplementGroup eq null}">--</c:if>
</td> </td>
<td align="center">${report.supplementArea}</td> <td align="center">${report.supplementArea}</td>
...@@ -684,13 +683,13 @@ ...@@ -684,13 +683,13 @@
<c:if test="${report.dealResult eq '7'}">转为线索</c:if> <c:if test="${report.dealResult eq '7'}">转为线索</c:if>
</td> </td>
<td align="center"> <td align="center">
${report.transferGroup}-- ${report.transferArea}--${report.transferDepartment}
${report.transferGroup} - ${report.transferArea} - ${report.transferDepartment}
<%-- <c:if test="${report.transferGroup eq '30590306011301372591'}">集团本部--${report.transferDepartment}</c:if> <%-- <c:if test="${report.transferGroup eq '30590306011301372591'}">集团本部--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30676650749523023279'}">地产集团--${report.transferDepartment}</c:if> <c:if test="${report.transferGroup eq '30676650749523023279'}">地产集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30721878435509835919'}">服务集团--${report.transferDepartment}</c:if> <c:if test="${report.transferGroup eq '30721878435509835919'}">服务集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30795782242187242020'}">文化集团--${report.transferDepartment}</c:if> <c:if test="${report.transferGroup eq '30795782242187242020'}">文化集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30770202834994792595'}">文旅集团--${report.transferDepartment}</c:if>--%> <c:if test="${report.transferGroup eq '30770202834994792595'}">文旅集团--${report.transferDepartment}</c:if>--%>
<c:if test="${report.transferGroup eq null and report.transferDepartment eq null and report.transferArea eq null}">--</c:if>
<%--<c:if test="${report.transferDepartment eq null}">--</c:if> <%--<c:if test="${report.transferDepartment eq null}">--</c:if>
<c:if test="${report.transferDepartment eq '1'}">营销</c:if> <c:if test="${report.transferDepartment eq '1'}">营销</c:if>
<c:if test="${report.transferDepartment eq '2'}">工程</c:if> <c:if test="${report.transferDepartment eq '2'}">工程</c:if>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
/*加载时 执行跟据集团 搜索下拉信息 解决每次刷新问题*/ /*加载时 执行跟据集团 搜索下拉信息 解决每次刷新问题*/
getRegion(); getRegion();
getTransferDepartment(); getTranArea();
}); });
function page(n, s) { function page(n, s) {
...@@ -634,7 +634,6 @@ ...@@ -634,7 +634,6 @@
<c:if test="${user.supplementGroup eq '30721878435509835919'}">服务集团</c:if> <c:if test="${user.supplementGroup eq '30721878435509835919'}">服务集团</c:if>
<c:if test="${user.supplementGroup eq '30795782242187242020'}">文化集团</c:if> <c:if test="${user.supplementGroup eq '30795782242187242020'}">文化集团</c:if>
<c:if test="${user.supplementGroup eq '30770202834994792595'}">文旅集团</c:if>--%> <c:if test="${user.supplementGroup eq '30770202834994792595'}">文旅集团</c:if>--%>
<c:if test="${report.supplementGroup eq null}">--</c:if>
</td> </td>
<td align="center">${report.supplementArea}</td> <td align="center">${report.supplementArea}</td>
<td align="center">${report.supplementType}</td> <td align="center">${report.supplementType}</td>
...@@ -678,13 +677,12 @@ ...@@ -678,13 +677,12 @@
<c:if test="${report.dealResult eq '7'}">转为线索</c:if> <c:if test="${report.dealResult eq '7'}">转为线索</c:if>
</td> </td>
<td align="center"> <td align="center">
${report.transferGroup}-- ${report.transferArea}--${report.transferDepartment} ${report.transferGroup} - ${report.transferArea} - ${report.transferDepartment}
<%-- <c:if test="${report.transferGroup eq '30590306011301372591'}">集团本部--${report.transferDepartment}</c:if> <%-- <c:if test="${report.transferGroup eq '30590306011301372591'}">集团本部--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30676650749523023279'}">地产集团--${report.transferDepartment}</c:if> <c:if test="${report.transferGroup eq '30676650749523023279'}">地产集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30721878435509835919'}">服务集团--${report.transferDepartment}</c:if> <c:if test="${report.transferGroup eq '30721878435509835919'}">服务集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30795782242187242020'}">文化集团--${report.transferDepartment}</c:if> <c:if test="${report.transferGroup eq '30795782242187242020'}">文化集团--${report.transferDepartment}</c:if>
<c:if test="${report.transferGroup eq '30770202834994792595'}">文旅集团--${report.transferDepartment}</c:if>--%> <c:if test="${report.transferGroup eq '30770202834994792595'}">文旅集团--${report.transferDepartment}</c:if>--%>
<c:if test="${report.transferGroup eq null and report.transferDepartment eq null and report.transferArea eq null}">--</c:if>
<%-- <c:if test="${report.transferDepartment eq null}">--</c:if> <%-- <c:if test="${report.transferDepartment eq null}">--</c:if>
<c:if test="${report.transferDepartment eq '1'}">营销</c:if> <c:if test="${report.transferDepartment eq '1'}">营销</c:if>
<c:if test="${report.transferDepartment eq '2'}">工程</c:if> <c:if test="${report.transferDepartment eq '2'}">工程</c:if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment