|
|
@@ -34,7 +34,10 @@ public class ProduceOrderController extends CommonController{
|
|
|
Map<String,Record> map = new HashMap<String,Record>();
|
|
|
StringBuilder masterCodes = new StringBuilder();
|
|
|
if("1".equals(type)){//盒码
|
|
|
- Record childInfo = Db.findFirst("select * from jinzai_upload_child where child_code = ?",code);
|
|
|
+ Record childInfo = Db.findFirst("select * from jinzai_upload_child where child_code = ?",code.toUpperCase());
|
|
|
+ if(childInfo == null){
|
|
|
+ childInfo = Db.findFirst("select * from jinzai_upload_child where child_code = ?",code.toLowerCase());
|
|
|
+ }
|
|
|
if(childInfo != null){
|
|
|
String master_code = childInfo.getStr("master_code");
|
|
|
Record masterInfo = Db.findFirst("select * from jinzai_upload_master where id = ?",master_code);
|