|
@@ -122,7 +122,7 @@ public class WmScorePackageController {
|
|
|
*/
|
|
|
@GetMapping(value = "/sn")
|
|
|
public R<String> getPkgSn() {
|
|
|
- return R.ok(pkgSequence.nextNo());
|
|
|
+ return R.ok("PKG" + pkgSequence.nextNo());
|
|
|
}
|
|
|
|
|
|
|
|
@@ -2594,11 +2594,14 @@ public class WmScorePackageController {
|
|
|
QueryWrapper<WmScorePackage> queryWrapper = Wrappers.<WmScorePackage>query()
|
|
|
.eq("p.package_type1", packageType1)
|
|
|
.eq("p.package_type2", packageType2)
|
|
|
- .like(StrUtil.isNotBlank(scorePackageName), "p.score_package_name", scorePackageName)
|
|
|
.eq(scorePackageStatus != null, "p.score_package_status", scorePackageStatus)
|
|
|
.eq("p.send_package_dept_id", sendDeptId)
|
|
|
.between(start != null && end != null, "p.create_time", start, end);
|
|
|
|
|
|
+ if (StrUtil.isNotBlank(scorePackageName)){
|
|
|
+ queryWrapper.like( "p.score_package_name", scorePackageName).or().like( "p.pkg_sn", scorePackageName);
|
|
|
+ }
|
|
|
+
|
|
|
if (StringUtil.isEmpty(typeId)) {
|
|
|
queryWrapper.in("p.typeid", "3", "4");
|
|
|
} else {
|
|
@@ -2804,6 +2807,10 @@ public class WmScorePackageController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (StrUtil.isBlank(wmScorePackage.getPackageSn())){
|
|
|
+ return R.failed("积分包序列号必填");
|
|
|
+ }
|
|
|
+
|
|
|
if (StrUtil.isNotBlank(wmScorePackage.getSubjectLocation())) {
|
|
|
SubjectLocation location = Enum.valueOf(SubjectLocation.class, wmScorePackage.getSubjectLocation());
|
|
|
wmScorePackage.setLocation(location);
|